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

[Drilldowns] Fix drilldown add variable adding additional brackets #196539

Conversation

kowalczyk-krzysztof
Copy link
Member

@kowalczyk-krzysztof kowalczyk-krzysztof commented Oct 16, 2024

Summary

This PR adds a check to create/edit drilldown template editor for whether the cursor (where variable would be inserted) is already between double brackets.

Fixes: #121421

@kowalczyk-krzysztof kowalczyk-krzysztof added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Feature:Drilldowns Embeddable panel Drilldowns Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 16, 2024
@kowalczyk-krzysztof kowalczyk-krzysztof requested a review from a team as a code owner October 16, 2024 12:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@kowalczyk-krzysztof kowalczyk-krzysztof self-assigned this Oct 16, 2024
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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
uiActionsEnhanced 135.7KB 135.9KB +188.0B

History

cc @kowalczyk-krzysztof

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

Tested locally and works great! 🎉

@kowalczyk-krzysztof kowalczyk-krzysztof merged commit 3c3b7c8 into elastic:main Oct 17, 2024
21 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2024
…lastic#196539)

## Summary

This PR adds a check to create/edit drilldown template editor for
whether the cursor (where variable would be inserted) is already between
double brackets.

Fixes: elastic#121421
(cherry picked from commit 3c3b7c8)
@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 Oct 17, 2024
…ets (#196539) (#196655)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Drilldowns] Fix drilldown add variable adding additional brackets
(#196539)](#196539)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Krzysztof
Kowalczyk","email":"krzysztof.kowalczyk@elastic.co"},"sourceCommit":{"committedDate":"2024-10-17T09:46:53Z","message":"[Drilldowns]
Fix drilldown add variable adding additional brackets (#196539)\n\n##
Summary\r\n\r\nThis PR adds a check to create/edit drilldown template
editor for\r\nwhether the cursor (where variable would be inserted) is
already between\r\ndouble brackets.\r\n\r\nFixes:
#121421","sha":"3c3b7c8ecb97961d98f7760cb90f25e2937c623d","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Feature:Drilldowns","v9.0.0","Team:SharedUX","backport:prev-minor"],"title":"[Drilldowns]
Fix drilldown add variable adding additional
brackets","number":196539,"url":"https://github.com/elastic/kibana/pull/196539","mergeCommit":{"message":"[Drilldowns]
Fix drilldown add variable adding additional brackets (#196539)\n\n##
Summary\r\n\r\nThis PR adds a check to create/edit drilldown template
editor for\r\nwhether the cursor (where variable would be inserted) is
already between\r\ndouble brackets.\r\n\r\nFixes:
#121421","sha":"3c3b7c8ecb97961d98f7760cb90f25e2937c623d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196539","number":196539,"mergeCommit":{"message":"[Drilldowns]
Fix drilldown add variable adding additional brackets (#196539)\n\n##
Summary\r\n\r\nThis PR adds a check to create/edit drilldown template
editor for\r\nwhether the cursor (where variable would be inserted) is
already between\r\ndouble brackets.\r\n\r\nFixes:
#121421","sha":"3c3b7c8ecb97961d98f7760cb90f25e2937c623d"}}]}]
BACKPORT-->

Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) bug Fixes for quality problems that affect the customer experience Feature:Drilldowns Embeddable panel Drilldowns release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Drilldowns] Create/edit drilldown template editor inserts additional {{
4 participants