-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 query rows step when querying a table containing spaces in the name #15346
Fix query rows step when querying a table containing spaces in the name #15346
Conversation
…be encoded. The CTX expects this to be passed in its decoded state as Koa would do to encoded URLs.
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
const ctx = buildCtx(appId, null, { | ||
params: { | ||
tableId, | ||
tableId: decodeURIComponent(tableId), |
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.
I'm confused as to why spaces in the name of the table would affect the- ohhhh the ID for external tables encodes the name within it doesn't 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.
Yeap exactly this - external tables the ID is built from the table name today.
…tion-query-rows-table-with-spaces
…com:Budibase/budibase into fix/automation-query-rows-table-with-spaces
Description
Updating query row to correctly decode the input table Id as it will be encoded. The CTX expects this to be passed in its decoded state as Koa would do to encoded URLs.
Addresses