-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Data Table] Remove extra column in split mode #83193
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
||
$scope.formattedColumns = table.columns | ||
.map(function (col, i) { | ||
const isBucket = buckets.find((bucket) => bucket.accessor === i); | ||
const isSplitColumn = splitColumn |
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.
👍 I didn't find any cases why this code needed.
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.
LGTM! Tested locally. cvs export works correctly
@sulemanof my only concern is that now the export in CSV doesn't have this column. So while when I split table (rows mode) the exported CSV has the the "splitting column", when I export it from columns mode it doesn't have it. |
@stratoula Hm... I tested that case. If it's true I should remove my approval. |
The main question is: do we need this column in exported csv if the actual table doesn't have it? |
This is a good question 🙂 From one point of view, it is good that is exported as it contains the splitting column info, from the other hand it is not displayed in the table so we could omit it. But my main point is that if it is not exported on column mode, shouldn't be exported on row mode. Can you check how it worked on 7.5.1? |
The problem is in The same issue is reproducible in earlier versions, I checked in The working feature was found in 6.5.1 - formatted export : 6.8.1 - raw export : FMPOV, the formatted export should not contain the split column in any case, since it is not presented in the table. |
@elasticmachine merge upstream |
Hey @sulemanof I think the linked issue doesn't actually indicate if we need that additional column or not, it just points out that there was a missing header on the exported table. |
The PR updated. |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
LGTM! I tested it locally, the splitted column/row is not exported. Thank you @sulemanof ❤️
* Fix extra column in split table * Update table exports Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* master: skip "Dashboards linked by a drilldown are both copied to a space" (elastic#83824) [alerts] adds action group and date to mustache template variables for actions (elastic#83195) skip flaky suite (elastic#79389) [DOCS] Reallocates limitations to point-of-use (elastic#79582) [Enterprise Search] Engine overview layout stub (elastic#83756) Disable exporting/importing of templates. Optimize pitch images a bit (elastic#83098) [DOCS] Consolidates plugins (elastic#83712) [ML] Space management UI (elastic#83320) test just part of the message to avoid updates (elastic#83703) [Data Table] Remove extra column in split mode (elastic#83193) Improve snapshot error messages (elastic#83785) skip flaky suite (elastic#83773) skip flaky suite (elastic#83771) skip flaky suite (elastic#65278) skip flaky suite (elastic#83793) [Task Manager] Ensures retries are inferred from the schedule of recurring tasks (elastic#83682) [index patterns] improve index pattern cache (elastic#83368) [Fleet] Rename ingestManager plugin ID fleet (elastic#83200) fixed pagination in connectors list (elastic#83638)
* Fix extra column in split table * Update table exports Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Fixes #73814
Initial issue:
when using Split table by column mode, the "splitting column" is repeated inside each row of all tables
The regression was caused by this pr: #54127
Checked in kibana
7.5.1
- the issue is not reproducible there:After the fix:
Checklist
Delete any items that are not applicable to this PR.
For maintainers