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] Transforms/Analytics: Fix data grid column sorting #66381

Open
walterra opened this issue May 13, 2020 · 4 comments
Open

[ML] Transforms/Analytics: Fix data grid column sorting #66381

walterra opened this issue May 13, 2020 · 4 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features Feature:Transforms ML transforms :ml

Comments

@walterra
Copy link
Contributor

Moved from comment to this separate issue.

Two observations:

  • When moving a column in the selection pop-up, the table reflects that change, but the pop-up still shows it in the old location
  • When hiding the outlier_score column, all the feature_influence columns disappear from the column selection pop-up and they don't come back when I re-select the outlier_score column

od_results_columns_move_and_disable

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml Feature:Transforms ML transforms Feature:Data Frame Analytics ML data frame analytics features v7.9.0 labels May 13, 2020
@walterra walterra self-assigned this May 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson
Copy link
Contributor

Testing latest master / 7.9.0, I can still reproduce:

  • When moving a column in the selection pop-up, the table reflects that change, but the pop-up still shows it in the old location

But this appears to be fixed:

When hiding the outlier_score column, all the feature_influence columns disappear from the column selection pop-up and they don't come back when I re-select the outlier_score column

@alvarezmelissa87
Copy link
Contributor

Digging into this, it looks like in data_grid.tsx, columnsWithChartsActionized - which gets passed as the columns prop for EuiDataGrid - is still in the old order even after the column has been moved in the column selection pop-up. (https://github.com/elastic/kibana/blob/master/x-pack/plugins/ml/public/application/components/data_grid/data_grid.tsx#L265)

Comparing with DataGrid demo in the docs (which doesn't have this issue - the https://elastic.github.io/eui/#/tabular-content/data-grid) where the columns going into the columns prop reflect the order of visibleColumns - the order after moving a column in the selection pop up.

@peteharverson
Copy link
Contributor

The sorting order in the popover is fixed for visible columns for 7.10.0 by #80618.

The sorting order for hidden columns in the popover is dependent on EuiDataGrid adding a callback that exposes the full information of the sorting/visiblity popover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features Feature:Transforms ML transforms :ml
Projects
None yet
Development

No branches or pull requests

4 participants