-
Notifications
You must be signed in to change notification settings - Fork 3
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: add filter by hardware #426
Conversation
05bdcea
to
de72968
Compare
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 good, but some of the hardware filters seem to not be working, they are listed as tested hardware but when the filter is applied it retrieves 0 boots/tests. This makes it so that even when every hardware is selected in the filters, the return is less than using no filters.
dashboard/src/api/TreeDetails.tsx
Outdated
); | ||
filterList?.forEach(value => { | ||
if (!filterParam[`filter_${key}`]) | ||
return (filterParam[`filter_${key}`] = [value.toString()]); |
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.
you don't need this return
statement.
dashboard/src/api/TreeDetails.tsx
Outdated
filterList?.forEach(value => { | ||
if (!filterParam[`filter_${key}`]) | ||
return (filterParam[`filter_${key}`] = [value.toString()]); | ||
return filterParam[`filter_${key}`].push(value.toString()); |
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.
ditto about return
statement
de72968
to
0bd18e3
Compare
0bd18e3
to
64d5788
Compare
I create a new issue for this bug #438 |
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.
Working well!
Add filter by hardware and fix filter errors
How to test