Skip to content

[ML] Data Frame Analytics: Use EuiDataGrid for outlier result page - #58235

Merged
walterra merged 16 commits into
elastic:masterfrom
walterra:ml-data-frame-analytics-data-grid
Mar 25, 2020
Merged

walterra merged 16 commits into
elastic:masterfrom
walterra:ml-data-frame-analytics-data-grid

Conversation

@walterra

@walterra walterra commented Feb 21, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Part of #51288.

  • Replaces EuiInMemoryTable with EuiDataGrid
  • Replaces the memory table's search with QueryInputFilter

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@walterra walterra self-assigned this Feb 21, 2020
@walterra walterra changed the title [ML] Use EuiDataGrid for data frame analytics results pages [ML] Data Frame Analytics: Use EuiDataGrid for results pages Mar 12, 2020
@walterra
walterra force-pushed the ml-data-frame-analytics-data-grid branch from 4fe918a to f0f2553 Compare March 13, 2020 12:18
@walterra walterra changed the title [ML] Data Frame Analytics: Use EuiDataGrid for results pages [ML] Data Frame Analytics: Use EuiDataGrid for outlier result page Mar 13, 2020
@walterra
walterra force-pushed the ml-data-frame-analytics-data-grid branch from 8320039 to d8fb346 Compare March 13, 2020 17:49
@walterra
walterra marked this pull request as ready for review March 13, 2020 17:49
@walterra
walterra requested review from a team as code owners March 13, 2020 17:49
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

setSearchQuery: Dispatch<SetStateAction<SavedSearchQuery>>;
}

const QUERY_LANGUAGE_KUERY = 'kuery';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you use the enums out of ml/common/constants/search.ts here?

@peteharverson

Copy link
Copy Markdown
Contributor

I am seeing a few issues when I use the paging controls (change page, or change page size).

For example, with the glass_outlier_detection_1 job from the MLQA dev bootstrap analytics suite, if I move from page 1 to 2, and then switch the page size to 50 I see:

image

And for an outlier job on a cloudwatch transform, switching from the first page to the last page of results, the page goes blank with the error:

image

@peteharverson

Copy link
Copy Markdown
Contributor

For the search bar, it would be nice to propagate any syntax errors to the user, as we do in the data visualizer for example:

image

Currently the error is only seen in the browser console:

image

@alvarezmelissa87

Copy link
Copy Markdown
Contributor

I'm getting the same errors that @peteharverson has commented about.

return docs.some(row => row._source[k] !== null);
})
.slice(0, MAX_COLUMNS);
return docs.some(row => row._source[k] !== null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the removed .slice() here - do we not need to limit to a particular number of columns initially anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I plan to re-introduce that in a follow-up, beginning with transforms we thought it's fine, but for indices like filebeat data grid has a hard time handling the load.

import { ExplorationDataGrid } from '../exploration_data_grid';
import { ExplorationQueryBar } from '../exploration_query_bar';

const FEATURE_INFLUENCE = 'feature_influence';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is also defined in exploration_data_grid.tsx - perhaps this could be moved to a shared location and imported into both places it's used?

@alvarezmelissa87 alvarezmelissa87 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM overall - just going to give it a local test before I approve 😄
Feel free to merge if you get another green check mark before I'm online tomorrow 👌

@walterra

Copy link
Copy Markdown
Contributor Author

Fixed: Propagating query string error, cell value accessors, paging.

@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@walterra
walterra merged commit caaeb37 into elastic:master Mar 25, 2020
@walterra
walterra deleted the ml-data-frame-analytics-data-grid branch March 25, 2020 06:29
walterra added a commit that referenced this pull request Mar 25, 2020
…58235) (#61212)

- Replaces EuiInMemoryTable with EuiDataGrid
- Replaces the memory table's search with QueryInputFilter
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…lastic#58235)

- Replaces EuiInMemoryTable with EuiDataGrid
- Replaces the memory table's search with QueryInputFilter
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.

5 participants