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

Use middleware to handle comma-separated query params #12995

Merged
merged 5 commits into from
Oct 4, 2023

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Oct 3, 2023

What type of PR is this?

Other

What does this PR do? Why is it needed?

This is a more future-proof solution to handling comma-separated query parameters than #12966. We now use an http middleware to inject custom code before invoking handlers.

Unit testing this functionality from the level of individual handlers is no longer possible. A much better test is passing comma-separated values in e2e, which I added to the Beacon API evaluator.

Which issues(s) does this PR fix?

Part of #12958

@rkapka rkapka added the API Api related tasks label Oct 3, 2023
@rkapka rkapka requested a review from a team as a code owner October 3, 2023 17:24
rauljordan
rauljordan previously approved these changes Oct 3, 2023
rauljordan
rauljordan previously approved these changes Oct 3, 2023
@rauljordan
Copy link
Contributor

looks like tests failed for a real reason @rkapka

@rkapka rkapka merged commit 7454041 into develop Oct 4, 2023
17 checks passed
@rkapka rkapka deleted the better-query-comma-handling branch October 4, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants