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

Filters #17

Open
ghost opened this issue Mar 8, 2023 · 2 comments
Open

Filters #17

ghost opened this issue Mar 8, 2023 · 2 comments
Assignees
Labels
task Task

Comments

@ghost
Copy link

ghost commented Mar 8, 2023

Context:
As a data scientist / data analyst / programme specialist, I want to filter the items and choose the one I'm interested in (e.g. It's labelled by country, thematic area, etc).

Link to the original milestone

Acceptance Criteria:

  • The following filters should be implemented:
    • Country (multi-select dropdown)
    • Year/period (year range filter)
    • Organization (multi-select dropdown)
    • Tags (multi-select dropdown)
  • The dropdown filter options should be sorted in alphabetical order for easy scanning.
  • The dropdown filter options for the country filter should be formatted in the title case.
  • The user should be able to clear values for each filter.
  • The user can choose to enter the start or end years only. If they added a start year only, then the results will be filtered to years starting from the start year until the latest. If they added an end year only, then the search results will be filtered to years from the earliest up until the end year. If the user wants to filter to one year only, they have to supply both start and end years to their desired year.
  • When a filter is updated, the catalogue items should be updated so that it displays the items that fit the criteria.
@ghost
Copy link
Author

ghost commented Mar 8, 2023

Filter Types:

  • Alphabetical
  • Tags
  • Dropdown for Country
  • Card to show searching and filtering for both
  • Created date
  • Updated date
  • Organization

@butchtm
Copy link
Collaborator

butchtm commented Mar 20, 2023

Outlining tasks for Filter implementation

  • Modify getCountry, getOrganizaition, getTags to return catalog ids along with keys (countries, orgs and tags)
  • Modify labels to only get the keys
  • Use union/intersection operations on the list of catalog ids to filter list of catalog items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task
Projects
Development

No branches or pull requests

2 participants