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

Add support for list query parameter #2520

Merged
merged 2 commits into from
May 12, 2022
Merged

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented May 7, 2022

Built on #2518, will be rebased once that's merged; only the last two commits are actually meant for this PR.

Fixes #2049 by adding support for a list=13,42,99 URL query parameter. This is then used by the review-notification links, as discussed previously in #2456 (comment).

In the UI, the list view is indicated by a custom search-box icon, list-alt:

Screenshot 2022-05-07 at 15 02 06

Internally, the argument uses the existing entity_ids payload parameter used by batch actions, with which /get-entities/ returns an unpaginated list of matching entities. It's not possible to use the parameter together with any other filters like status or search. This allows for re-merging the just-added fetchEntitiesById() API wrapper method into fetchEntities().

An errant missing FiltersPanel FTL string is added, as we're meddling here with that code in any case.

@eemeli eemeli requested a review from mathjazz May 7, 2022 12:13
@eemeli eemeli force-pushed the list-entities branch 2 times, most recently from 3b4e4c2 to 05becc0 Compare May 7, 2022 12:19
@eemeli eemeli mentioned this pull request May 9, 2022
@eemeli eemeli merged commit 3bb0455 into mozilla:master May 12, 2022
@eemeli eemeli deleted the list-entities branch May 12, 2022 17:20
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.

Add an option to link to multiple strings
2 participants