-
Notifications
You must be signed in to change notification settings - Fork 4
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
[DT-777] Filter by participant count #2733
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # src/components/data_search/DatasetFilterList.jsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, just a few misc comments.
} else { | ||
if (filters[category]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would combine an if
after an else
here
} else { | |
if (filters[category]) { | |
} else if (filters[category]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like most of @pshapiro4broad 's suggestions! The only one I'm not sure about is the filterHandler
refactor.
import DatasetFilterList from '../../../src/components/data_search/DatasetFilterList'; | ||
|
||
const duosUser = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
{method: 'POST', url: '**/api/dataset/search/index'}, handler).as('searchIndex'); | ||
mount(<DatasetSearchTable {...props} />); | ||
cy.get('#participantCountMax-range-input').clear().type('50'); | ||
cy.wait(1000).then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I wait on 'searchIndex' it doesn't work I think because there is another call to this api without the filters applied first
# Conflicts: # cypress/component/DataSearch/dataset_search_filters.spec.js
Addresses
Jira Ticket: https://broadworkbench.atlassian.net/browse/DT-777
Summary
Adds a filter for participant size
DatasetSearchTable:
DatasetFilterList
Visual
Screen.Recording.2024-11-21.at.9.59.40.AM.mov
To Do
Unit tests
Have you read Terra's Contributing Guide lately? If not, do that first.