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

[ES|QL] Correct the lens_map_to_columns function call arguments #213038

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Mar 4, 2025

Summary

The else is being called atm only in Discover ES|QL mode, when the user is typing stats or keep.
The isTextBased flag is missing which means that we don't call the mapToOriginalColumnsTextBased but the one for the dsl mode which might cause bugs.

I don't think that Peter had any reason to do so, it seems more as it slipped.

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.6MB 1.6MB +17.0B

@stratoula stratoula added release_note:skip Skip the PR/issue when compiling release notes v9.1.0 v8.19.0 Feature:Lens Feature:ES|QL ES|QL related features in Kibana backport:version Backport to applied version labels labels Mar 4, 2025
@stratoula stratoula marked this pull request as ready for review March 4, 2025 09:28
@stratoula stratoula requested a review from a team as a code owner March 4, 2025 09:28
Copy link
Contributor

@dej611 dej611 left a comment

Choose a reason for hiding this comment

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

Code changes LGTM

@stratoula stratoula merged commit e24c1c3 into elastic:main Mar 4, 2025
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/13652148997

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 4, 2025
…tic#213038)

## Summary

The else is being called atm only in Discover ES|QL mode, when the user
is typing stats or keep.
The `isTextBased` flag is missing which means that we don't call the
`mapToOriginalColumnsTextBased` but the one for the dsl mode which might
cause bugs.

I don't think that Peter had any reason to do so, it seems more as it
slipped.

(cherry picked from commit e24c1c3)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 4, 2025
…#213038) (#213070)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Correct the lens_map_to_columns function call arguments
(#213038)](#213038)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2025-03-04T10:58:27Z","message":"[ES|QL]
Correct the lens_map_to_columns function call arguments (#213038)\n\n##
Summary\n\nThe else is being called atm only in Discover ES|QL mode,
when the user\nis typing stats or keep.\nThe `isTextBased` flag is
missing which means that we don't call
the\n`mapToOriginalColumnsTextBased` but the one for the dsl mode which
might\ncause bugs.\n\nI don't think that Peter had any reason to do so,
it seems more as
it\nslipped.","sha":"e24c1c3ee5f69c1c67d39e072ffd36c84bb230e7","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Lens","Feature:ES|QL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
Correct the lens_map_to_columns function call
arguments","number":213038,"url":"https://github.com/elastic/kibana/pull/213038","mergeCommit":{"message":"[ES|QL]
Correct the lens_map_to_columns function call arguments (#213038)\n\n##
Summary\n\nThe else is being called atm only in Discover ES|QL mode,
when the user\nis typing stats or keep.\nThe `isTextBased` flag is
missing which means that we don't call
the\n`mapToOriginalColumnsTextBased` but the one for the dsl mode which
might\ncause bugs.\n\nI don't think that Peter had any reason to do so,
it seems more as
it\nslipped.","sha":"e24c1c3ee5f69c1c67d39e072ffd36c84bb230e7"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213038","number":213038,"mergeCommit":{"message":"[ES|QL]
Correct the lens_map_to_columns function call arguments (#213038)\n\n##
Summary\n\nThe else is being called atm only in Discover ES|QL mode,
when the user\nis typing stats or keep.\nThe `isTextBased` flag is
missing which means that we don't call
the\n`mapToOriginalColumnsTextBased` but the one for the dsl mode which
might\ncause bugs.\n\nI don't think that Peter had any reason to do so,
it seems more as
it\nslipped.","sha":"e24c1c3ee5f69c1c67d39e072ffd36c84bb230e7"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:ES|QL ES|QL related features in Kibana Feature:Lens release_note:skip Skip the PR/issue when compiling release notes v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants