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

DM-47027: Change get param dependency to correctly parse list params #231

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

stvoutsin
Copy link
Member

Summary
GET & POST list params were not being read correctly, i.e. providing multiple "POS" params. Reason is that we were using
request.query_params.items() instead of request.query_params.multi_items()
This fix has been tested and does now correctly read in list params.

Tests
A test case has been added which introduces a simple route that returns the params that were provided as a json response.
Not sure if there is a better way to do this?

Copy link
Member

@rra rra left a comment

Choose a reason for hiding this comment

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

This test approach seems fine to me. I'll take a look when I do another round of development to see if there's a simpler way, but I have no objections to this one. Thanks for the fix!

@stvoutsin
Copy link
Member Author

Just made one minor change to add the test route on its own "/test" prefix

@stvoutsin stvoutsin merged commit 389bd35 into main Oct 24, 2024
3 checks passed
@stvoutsin stvoutsin deleted the tickets/DM-47027 branch October 24, 2024 20:25
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.

2 participants