-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Adding filter bar to jobs list #20415
[ML] Adding filter bar to jobs list #20415
Conversation
💚 Build Succeeded |
Pinging @elastic/ml-ui |
💔 Build Failed |
retest |
💔 Build Failed |
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.
A few minor comments. Otherwise LGTM
const loadGroups = () => { | ||
return ml.jobs.groups() | ||
.then((groups) => { | ||
return groups.map(g => ({ |
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.
The style guide recommends using parentheses when the function body includes braces
} | ||
|
||
// keep count of the number of matches we make as we're looping over the clauses | ||
// we only want to return jobs with match all clauses, i.e. each search term is ANDed |
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.
Should this be jobs which match all clauses
?
EuiSearchBar, | ||
} from '@elastic/eui'; | ||
|
||
const loadGroups = () => { |
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.
Prefer the use of a function declaration rather an expression here
💔 Build Failed |
e4f9565
to
a51b78b
Compare
💚 Build Succeeded |
* [ML] Adding filter bar to jobs list * fixing page index when filtering * refreshing job selection after actions have happened * adding job counts to groups * catching multi-select start datafeed errors * style tweaks * more style tweaks * changes based on review * refactoring search logic
* [ML] Adding filter bar to jobs list * fixing page index when filtering * refreshing job selection after actions have happened * adding job counts to groups * catching multi-select start datafeed errors * style tweaks * more style tweaks * changes based on review * refactoring search logic
Related to #20150 |
Adds filter bar to the jobs list.
Terms searching will match on job id, description and memory status.
Filters for Job and datafeed state can be toggled.
Groups can be picked from a dropdown.
Filter terms are ANDed to allow refining of results.