-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
Now the object value is stringified JSON
Typescript Tests 5 files 74 suites 2m 9s ⏱️ For more details on these failures, see this check. Results for commit 43c91ca. |
Typescript Tests 8 files 77 suites 5m 10s ⏱️ Results for commit 93a74ed. |
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
for #1047 when it lands Co-authored-by: John Kaster <kaster@google.com>
This comment has been minimized.
This comment has been minimized.
🤖 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).
@looker/sdk-rtl
was encoding object values likeas
and now the value is JSON stringified instead