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

[ML] Adding filter bar to jobs list #20415

Merged

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Jul 3, 2018

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.

image

image

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jgowdyelastic jgowdyelastic changed the title [ML] [WIP] Adding filter bar to jobs list [ML] Adding filter bar to jobs list Jul 3, 2018
@jgowdyelastic jgowdyelastic self-assigned this Jul 3, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jgowdyelastic
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@peteharverson peteharverson left a 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 => ({
Copy link
Contributor

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
Copy link
Contributor

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 = () => {
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jgowdyelastic jgowdyelastic force-pushed the adding-filter-bar-to-jobs-list branch from e4f9565 to a51b78b Compare July 4, 2018 11:11
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jgowdyelastic jgowdyelastic merged commit c4756b1 into elastic:master Jul 4, 2018
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Jul 4, 2018
* [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
jgowdyelastic added a commit that referenced this pull request Jul 4, 2018
* [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
@jgowdyelastic
Copy link
Member Author

Related to #20150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants