-
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
[Lens] Filter columns not visible in the visualization for CSV download #121802
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
On dashboard there’s also a csv export action which isn’t fixed by this pr. Can we find a solution to fix both places in the same way? |
I think I've seen that already
I had a look at that, but I see no particular way to get this type of meta information from outside Lens editor. |
Maybe we can introduce an expression function to filter all columns except the ones we need as a last step of the datasource expression |
That would make it work also for the inspector download/table view. |
@elasticmachine merge upstream |
Right, this seems like a good thing - everything will be consistent |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
Fix #121063
This PR makes the CSV download (within the Lens editor) aware of visible vs invisible columns in the visualization, filtering them for both (spreadsheet) formula check & csv download.
Because there's no easy way to directly test the fix, I've used the indirect formula check which produces a warning message to test it.
Some questions
Cumulative Sum
,Differences
and others have been exported with their referenced columns. Is this "fix" considered as a breaking change? Or was the previous behaviour a bug?Checklist
Delete any items that are not applicable to this PR.