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

feat: add filter by hardware #426

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

@anajalvarenga anajalvarenga marked this pull request as ready for review October 24, 2024 22:14
Copy link
Collaborator

@MarceloRobert MarceloRobert left a 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.

);
filterList?.forEach(value => {
if (!filterParam[`filter_${key}`])
return (filterParam[`filter_${key}`] = [value.toString()]);
Copy link
Collaborator

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.

filterList?.forEach(value => {
if (!filterParam[`filter_${key}`])
return (filterParam[`filter_${key}`] = [value.toString()]);
return filterParam[`filter_${key}`].push(value.toString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto about return statement

Copy link
Collaborator

@MarceloRobert MarceloRobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well!

@anajalvarenga anajalvarenga merged commit 8e14bc1 into main Oct 25, 2024
5 checks passed
@WilsonNet WilsonNet deleted the feat/add-filter-by-hardware branch November 13, 2024 12:40
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 filter by environment compatible
4 participants