1. 25 Apr, 2022 1 commit
    • jeremytchang's avatar
      fix: Refactored Go SDK to use Go oauth2 client, added `x-looker-appid` header... · d51a6750
      jeremytchang authored
      fix: Refactored Go SDK to use Go oauth2 client, added `x-looker-appid` header to Go requests (#1069)
      
      Fixes #1027
      
      - Refactored to use Go's standard oauth2 client to handle our client credentials flow. The client will automatically fetch and refresh the token when it is expired. Removed all the manual authorization implementation.
      
      - Also updated the the AuthSession to maintain only one client instead of creating a new one per request. As recommended by Go docs. `Clients and Transports are safe for concurrent use by multiple goroutines and for efficiency should only be created once and re-used.`
      
      - Added x-looker-appid header with standard go http middleware, the RoundTripper interface. 
      
      - Removed auth implementation specific tests. Added couple auth sanity tests even though the go client itself is well tested. Updated tests to properly call NewAuthSession to properly create the client.
      d51a6750
  2. 22 Apr, 2022 1 commit
  3. 21 Apr, 2022 2 commits
    • Bryn Ryans's avatar
      feat: Add ExtensionProvider40 component (#1068) · 425aee50
      Bryn Ryans authored
      A simplified extension provider does not require a type or generic to identify
      the sdk required, basically it just gives access to Looker SDK 4.0.
      
      Also updates the playground package to demonstrate its use:
      
      1. packages updated.
      2. added call to me to demonstrate SDK 4.0 usage.
      3. now runs dev server on https.
      5. removed unnecessary hot HOC.
      425aee50
    • jeremytchang's avatar
      fix: Register Go Fuzzy JSON Decoders once on init (#1054) · 350d32df
      jeremytchang authored
      The RegisterFuzzyDecoders method can lead to a concurrent map write
      error on concurrent calls to Do().
      Also RegisterFuzzyDecoders does not need to be called every time JSON needs to be decoded.
      It only needs to be called once on package init.
      350d32df
  4. 19 Apr, 2022 2 commits
    • Dr. Strangelove's avatar
      chore: changed hardcoded references to looker version for CI/CD (#1065) · fb19b8f4
      Dr. Strangelove authored
      * chore: changed hardcoded references to looker version for CI/CD
      
        * changed hardcode references to use reuasable actions
          so that versions only need to be changed in one place
      
        * factored out the special handling that is no longer
          needed for credentials versions. Simpliofied credentials
          secrets to LOOKERSDK_CLIENT_ID from
          LOOKERSDK_CLIENT_ID__21_18 and likewise for
          LOOKERSDK_CLIENT_SECRET.
      
      * revert: revert mistaken update
      
      * chore: fix call to primary-version
      fb19b8f4
    • nsepetys's avatar
      fix: replacing unimported exception (#1066) · d85b1b88
      nsepetys authored
      d85b1b88
  5. 18 Apr, 2022 1 commit
  6. 13 Apr, 2022 4 commits
  7. 12 Apr, 2022 3 commits
  8. 08 Apr, 2022 1 commit
  9. 07 Apr, 2022 6 commits
    • looker-open-source-automation-bot's avatar
      79b245fd
    • Joel Dodge's avatar
      Update release-please-config.json (#1052) · 4865f644
      Joel Dodge authored
      4865f644
    • John Kaster's avatar
      fix: encodeParam doc tweak to republish (#1050) · 512bc818
      John Kaster authored
      Release-please versioning was incorrect so the most critical package to get published didn't get published.
      
      Updating the source comment header which should meet the criteria for republishing
      512bc818
    • looker-open-source-automation-bot's avatar
      chore: release main (#1049) · 50995676
      looker-open-source-automation-bot authored
      :robot: I have created a release \*beep\* \*boop\*
      ---
      <details><summary>sdk-codegen-all: 2.3.1</summary>
      
      
      ### Bug Fixes
      
      * encodeParam returned [object Object] for object types ([#1047](https://www.github.com/looker-open-source/sdk-codegen/issues/1047)) ([eccc1dbb](https://www.github.com/looker-open-source/sdk-codegen/commit/eccc1dbb3d64f36e6a06d71a1c3da37d972abd3a))
      </details>
      <details><summary>@looker/sdk-rtl: 21.3.2</summary>
      
      
      ### Bug Fixes
      
      * encodeParam returned [object Object] for object types ([#1047](https://www.github.com/looker-open-source/sdk-codegen/issues/1047)) ([eccc1dbb](https://www.github.com/looker-open-source/sdk-codegen/commit/eccc1dbb3d64f36e6a06d71a1c3da37d972abd3a))
      </details>
      <details><summary>@looker/sdk: 22.4.1</summary></details>
      <details><summary>@looker/sdk-codegen: 21.5.1</summary></details>
      <details><summary>@looker/extension-sdk: 22.4.1</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/sdk-node: 22.4.1</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/code-editor: 0.1.20</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * devDependencies
          * @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
      </details>
      <details><summary>@looker/extension-sdk-react: 22.4.1</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/extension-sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/sdk-codegen-scripts: 21.3.2</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
          * @looker/sdk-node bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/wholly-sheet: 0.5.27</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
        * devDependencies
          * @looker/sdk-node bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/extension-utils: 0.1.8</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/extension-sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/extension-sdk-react bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/hackathon: 22.4.1</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/code-editor bumped from ^0.1.19 to ^0.1.20
          * @looker/extension-sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/extension-sdk-react bumped from ^22.4.0 to ^22.4.1
          * @looker/extension-utils bumped from ^0.1.7 to ^0.1.8
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/wholly-sheet bumped from ^0.5.26 to ^0.5.27
      </details>
      <details><summary>@looker/run-it: 0.9.31</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/code-editor bumped from ^0.1.19 to ^0.1.20
          * @looker/extension-utils bumped from ^0.1.7 to ^0.1.8
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
      </details>
      <details><summary>@looker/api-explorer: 0.9.31</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/extension-utils bumped from ^0.1.7 to ^0.1.8
          * @looker/code-editor bumped from ^0.1.19 to ^0.1.20
          * @looker/run-it bumped from ^0.9.30 to ^0.9.31
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
        * devDependencies
          * @looker/sdk-codegen-scripts bumped from ^21.3.1 to ^21.3.2
          * @looker/sdk-node bumped from ^22.4.0 to ^22.4.1
      </details>
      <details><summary>@looker/extension-api-explorer: 22.4.1</summary>
      
      
      ### Dependencies
      
      * The following workspace dependencies were updated
        * dependencies
          * @looker/api-explorer bumped from ^0.9.30 to ^0.9.31
          * @looker/extension-sdk-react bumped from ^22.4.0 to ^22.4.1
          * @looker/extension-utils bumped from ^0.1.7 to ^0.1.8
          * @looker/run-it bumped from ^0.9.30 to ^0.9.31
          * @looker/sdk bumped from ^22.4.0 to ^22.4.1
          * @looker/sdk-codegen bumped from ^21.5.0 to ^21.5.1
      </details>
      
      
      This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
      50995676
    • Joel Dodge's avatar
    • John Kaster's avatar
      fix: encodeParam returned [object Object] for object types (#1047) · eccc1dbb
      John Kaster authored
      `@looker/sdk-rtl` was encoding object values like
      
      ```ts
      { created_date: 'this year to second' }
      ```
      
      as 
      ```ts
      [object Object]
      ```
      
      and now the value is JSON stringified instead
      eccc1dbb
  10. 25 Mar, 2022 1 commit
  11. 24 Mar, 2022 2 commits
  12. 23 Mar, 2022 5 commits
    • jeremytchang's avatar
      18fa41b0
    • jeremytchang's avatar
      be98e2f0
    • jeremytchang's avatar
      feat: Update release-please version, add r-p config for Go, add Go publish CI (#1030) · e597978f
      jeremytchang authored
      - Updated release-please to latest v3 from v2 that contains the needed functionality for releasing Go SDK. The breaking changes should not affect us: https://github.com/google-github-actions/release-please-action/releases/tag/v3.0.0
      - Setup release-please config to release Go SDK at v0 only.-- To release Go SDK at v1 and above requires automated editing of  the module name in go.mod during SDK generation or when release-please creates a release PR. Release-please gi
      thub issue: https://github.com/googleapis/release-please/issues/1344
      -- The repo tag must be in the exact format of "go/vX.X.X". So package-name and tag-separator in release-please-config.json are set accordingly
      - Setup release-please-manifest to point go sdk to 0.0.1. 0.0.0 is automatically bumped to 1.0.0 ignoring the "pre-major" release-please configs.
      - Setup a go publish github action that publishes go module to go proxy based off the new tag
      - Updated go.mod and go.sum with go mod tidy which cleans up
      dependencies
      e597978f
    • jeremytchang's avatar
      fix: Make Go SDK parse response by result type (#1021) · c1675abb
      jeremytchang authored
      * fix: Go SDK parses response by result type
      
      Currently go sdk model generation doesn't support union type for responses like
      RunQuery. So we cannot parse according to Content Type Header. For now, parse
      based off model type.
      
      We need to update sdk model generation to use interface{}
      for union types, and then use Content Type Header to parse response accordingly.
      This will break downstream dependencies.
      
      - Added additional integration tests around queries looks and
        dashboards.
      - Parse response based of type defined in go sdk models, the result type
      - Added unit tests
      - Return error body in addition to error status code.
      
      * Added git issue in comment
      
      * Added png/svg integration tests and updated integration tests to passing with new 22.4
      c1675abb
    • John Kaster's avatar
      chore: update APIX tests for API 4 GA specs (#1031) · 19b4602b
      John Kaster authored
      Changes:
      - An id type was being used in a test for int64. All ids are now strings so a different Int64 spec property is used now
      - Refreshed the spec shadow copy in APIX. Perhaps we can remove this now?
      - Changed looker doc redirect link pattern to reflect the removal of redirects from `looker.com/docs/r` to the new `docs.looker.com/r`pattern
      19b4602b
  13. 22 Mar, 2022 1 commit
  14. 17 Mar, 2022 2 commits
  15. 15 Mar, 2022 1 commit
  16. 14 Mar, 2022 1 commit
    • Dr. Strangelove's avatar
      ci: change workflows to use reusable action for looker versions (#1018) · a9f62bba
      Dr. Strangelove authored
      * ci: change workflows to use reusable action for looker versions
      
      * fix: change supported-versions@v0.0.1 to @main
      
        Using a particular version here is a mistake since
        this would need to change for every new looker release.
        Instead use @main so that the supported-versions
        action will always use the latest version.
      a9f62bba
  17. 07 Mar, 2022 2 commits
  18. 04 Mar, 2022 4 commits