-
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
[Expressions] columns
. Fixes Bugs caused by using name instead of ID.
#118470
[Expressions] columns
. Fixes Bugs caused by using name instead of ID.
#118470
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
@elasticmachine merge upstream |
saveOther: boolean = false | ||
) => | ||
cols.reduce<{ matched: DatatableColumn[]; other: DatatableColumn[] }>( | ||
(splitedColumns, col) => { |
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.
NIT: splitColumns
is a more proper name
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.
Done.
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.
Looks good 👍
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @Kunzetsov |
…D. (#118470) * Fixed behavior of the columns function. * updated tests to check for `id` matching in addition to the `name`. Co-authored-by: Kibana Machine <[email protected]>
Summary
Fixes bugs from this issue, related to
columns
expression.New behavior:
Added support of IDs. If
exclude
orinclude
contains ids and names, the expression first compares an id and then a name.Expression:
Output of the
head
:Result of the
columns
expression: