Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: encodeParam returned [object Object] for object types #1047

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

jkaster
Copy link
Contributor

@jkaster jkaster commented Apr 6, 2022

@looker/sdk-rtl was encoding object values like

{ created_date: 'this year to second' }

as

[object Object]

and now the value is JSON stringified instead

Now the object value is stringified JSON
@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2022

Typescript Tests

    5 files    74 suites   2m 9s ⏱️
169 tests 164 ✔️ 4 💤 1 ❌
534 runs  524 ✔️ 8 💤 2 ❌

For more details on these failures, see this check.

Results for commit 43c91ca.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2022

Typescript Tests

    8 files    77 suites   5m 10s ⏱️
169 tests 165 ✔️   4 💤 0 ❌
615 runs  595 ✔️ 20 💤 0 ❌

Results for commit 93a74ed.

@jkaster jkaster merged commit eccc1db into main Apr 7, 2022
@jkaster jkaster deleted the jk/fix_obj_transport branch April 7, 2022 00:06
Copy link
Collaborator

@bryans99 bryans99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -379,8 +380,12 @@ export type Values = { [key: string]: any } | null | undefined
export function encodeParam(value: any) {
if (value instanceof Date) {
value = value.toISOString()
} else if (value instanceof DelimArray) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks so familiar. I thought we'd fixed it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at least we've fixed it now

jkaster added a commit that referenced this pull request Apr 7, 2022
for #1047 when it lands

Co-authored-by: John Kaster <kaster@google.com>
@github-actions

This comment has been minimized.

jkaster pushed a commit that referenced this pull request Apr 7, 2022
🤖 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)) ([eccc1db](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)) ([eccc1db](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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants