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

feat: allow string arrays as filter for string and pango lineage fields #516

Merged

Conversation

fengelniederhammer
Copy link
Contributor

resolves #507

import org.springframework.util.MultiValueMap

typealias SequenceFilters = Map<String, List<String>>
typealias GetRequestSequenceFilters = MultiValueMap<String, String>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spring only properly maps GET requests if it is a MultiValueMap. Having the full MultiValueMap throughout the code was a bit too exhausting and not really necessary, because it's just a thin wrapper around Map<K, List<V>>

@fengelniederhammer fengelniederhammer force-pushed the 507-array-input-of-string-fields-map-to-or-filter branch 3 times, most recently from 2cbd484 to eddab59 Compare December 18, 2023 15:12
@fengelniederhammer fengelniederhammer force-pushed the 507-array-input-of-string-fields-map-to-or-filter branch 2 times, most recently from 6bcc486 to 78615ed Compare December 19, 2023 08:40
@fengelniederhammer fengelniederhammer force-pushed the 507-array-input-of-string-fields-map-to-or-filter branch from 78615ed to 2a6e7b6 Compare December 19, 2023 09:04
@fengelniederhammer fengelniederhammer merged commit 4d06713 into main Dec 19, 2023
9 checks passed
@fengelniederhammer fengelniederhammer deleted the 507-array-input-of-string-fields-map-to-or-filter branch December 19, 2023 09:10
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.

Array input of string fields map to OR filter
2 participants