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

Parse status query param to int #544

Conversation

Assem-Uber
Copy link
Contributor

Archival query params are taken from the url so they are treated as strings.
In order to send a correct archival query status needs to be an int so that it is sent without quotes surrounding it.

The fix is to parse the status to integers if possible while reading them from url & pass the parsed value to the query builder

@Assem-Uber Assem-Uber merged commit 9bc4e2f into cadence-workflow:master Mar 26, 2024
4 checks passed
Assem-Hafez added a commit to Assem-Hafez/cadence-web that referenced this pull request Mar 26, 2024
Co-authored-by: Assem Hafez <assem.a.hafez@gmail.com>
Assem-Uber added a commit that referenced this pull request Mar 27, 2024
* handle export for cross origin

* lint fix

* fix href for export btn

* remove wrong query params to the export get

* change export link to use onclick

* fix blob content

* parse status query param to int (#544)

Co-authored-by: Assem Hafez <assem.a.hafez@gmail.com>

* move chai-spies to dev dependecies

* fix lint

* preserve event target reference in the promise context

* fix lint

---------

Co-authored-by: Assem Hafez <137278762+Assem-Uber@users.noreply.github.com>
@Assem-Hafez Assem-Hafez mentioned this pull request Mar 27, 2024
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