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

dataset-select filter by contributor #287

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

eharkins
Copy link
Contributor

@eharkins eharkins commented Mar 24, 2021

This adds the dataset contributor as a keyword for the filtering of datasets in the dataset-select component. In some cases this results in duplicate or near-duplicate keywords if the contributor name is also in the dataset name.

It doesn't add contributor keywords if the datasets are all from the same contributor.

@tsibley tsibley temporarily deployed to nextstrain-s-filter-con-a7m69k March 24, 2021 18:50 Inactive
@eharkins eharkins temporarily deployed to nextstrain-s-filter-con-a7m69k March 26, 2021 17:36 Inactive
@eharkins
Copy link
Contributor Author

Second commit makes contributor filters distinct from keyword ones. They show up like contributor → Nextstrain Team in the dropdown and use the intersection with any keyword filters when applied.

@eharkins eharkins temporarily deployed to nextstrain-s-filter-con-a7m69k March 30, 2021 18:56 Inactive
Columns are currently supplied to the <DatasetSelect> for rendering
in a table. Here we also expose these as filtering options.
The first column (the dataset) is special cased and broken
into keywords, thus allowing (e.g.) us to match "h3n2" for a dataset
flu/seasonal/h3n2/ha/2y.

This commit rebases previous work by @harkins onto a refactored
version of the <DatsetSelect>, and extends it to require datasets to
match the union of filterValues for each filterType specified.

Co-authored-by: eharkins <eli.harkins@gmail.com>
@jameshadfield jameshadfield changed the base branch from master to dataset-columns-v2 April 10, 2021 06:57
@jameshadfield
Copy link
Member

@eharkins I rebased this onto #302, and extended the matching logic to require datasets to
match the union of filterValues for each filterType specified. This means that we can filter to (e.g.) 3y, 2y and get all 3y and all 2y datasets (previously we got none).

@jameshadfield
Copy link
Member

I am going to merge this (and the parent etc) so that #299 ends up with all the related changes, and we can perform final review / testing there.

@jameshadfield jameshadfield deleted the filter-contributor branch April 13, 2021 22:00
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.

3 participants