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

DEVPROD-7765: Provide specific types for parsing query params #543

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Dec 11, 2024

DEVPROD-7765

Description

This bug is caused by our usage of the query-string library. We use the { parseNumbers: true } setting when making calls to this library. So if the filter is a large number, the library will try to parse it out, which JavaScript cannot handle.

I updated the library to get access to the new types property in ParserOptions. This property enables enforcing types on each query parameter. The docs say it takes precedence over other properties like parseNumbers but I couldn't get that to work, so I just set parseNumbers to false.

Testing

  • Added Cypress tests

@minnakt minnakt marked this pull request as ready for review December 12, 2024 21:20
@minnakt minnakt requested a review from a team as a code owner December 12, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant