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 Editor] Add hideRunQueryButton prop to control run query button visibility #208446

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

e40pud
Copy link
Contributor

@e40pud e40pud commented Jan 27, 2025

Summary

Working on "SIEM Migrations" we needed to be able to have a bigger height for the ES|QL editor. To achive that we could use editorIsInline prop which extends the height of the editor, though it would expose "run query" button. The "run query" button does not fit the the UI of the "SIEM Migrations" feature, so we added the new prop hideRunQueryButton to be able to hide the "run query" button. More details in slack.

Screenshot of the inlined ES|QL editor within "SIEM Migrations" feature

Screenshot 2025-01-27 at 21 31 24

@e40pud e40pud added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Team:ESQL ES|QL related features in Kibana labels Jan 27, 2025
@e40pud e40pud requested a review from stratoula January 27, 2025 20:37
@e40pud e40pud self-assigned this Jan 27, 2025
@e40pud e40pud requested a review from a team as a code owner January 27, 2025 20:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@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
esql 394.5KB 394.5KB +29.0B
Unknown metric groups

API count

id before after diff
@kbn/esql-editor 36 37 +1
esql 50 51 +1
total +2

cc @e40pud

@stratoula stratoula added the Feature:ES|QL ES|QL related features in Kibana label Jan 28, 2025
@e40pud e40pud merged commit 34092ec into elastic:main Jan 28, 2025
17 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 28, 2025
…ton visibility (elastic#208446)

## Summary

Working on "SIEM Migrations" we needed to be able to have a bigger
height for the ES|QL editor. To achive that we could use
`editorIsInline` prop which extends the height of the editor, though it
would expose "run query" button. The "run query" button does not fit the
the UI of the "SIEM Migrations" feature, so we added the new prop
`hideRunQueryButton` to be able to hide the "run query" button. More
details in
[slack](https://elastic.slack.com/archives/C06RG9MTZMJ/p1737996842482479).

### Screenshot of the inlined ES|QL editor within "SIEM Migrations"
feature

<img width="1281" alt="Screenshot 2025-01-27 at 21 31 24"
src="https://github.com/user-attachments/assets/4b6f1917-c7f0-4a73-9e3b-912257d6d825"
/>

(cherry picked from commit 34092ec)
@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 Jan 28, 2025
…ol run query button visibility (#208446) (#208487)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL Editor] Add &#x60;hideRunQueryButton&#x60; prop to control run
query button visibility
(#208446)](#208446)

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

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

<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"ievgen.sorokopud@elastic.co"},"sourceCommit":{"committedDate":"2025-01-28T08:27:49Z","message":"[ES|QL
Editor] Add `hideRunQueryButton` prop to control run query button
visibility (#208446)\n\n## Summary\r\n\r\nWorking on \"SIEM Migrations\"
we needed to be able to have a bigger\r\nheight for the ES|QL editor. To
achive that we could use\r\n`editorIsInline` prop which extends the
height of the editor, though it\r\nwould expose \"run query\" button.
The \"run query\" button does not fit the\r\nthe UI of the \"SIEM
Migrations\" feature, so we added the new prop\r\n`hideRunQueryButton`
to be able to hide the \"run query\" button. More\r\ndetails
in\r\n[slack](https://elastic.slack.com/archives/C06RG9MTZMJ/p1737996842482479).\r\n\r\n###
Screenshot of the inlined ES|QL editor within \"SIEM
Migrations\"\r\nfeature\r\n\r\n<img width=\"1281\" alt=\"Screenshot
2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/4b6f1917-c7f0-4a73-9e3b-912257d6d825\"\r\n/>","sha":"34092ec953b95341c7c8a2f6478b99288bbdb405","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Feature:ES|QL","Team:ESQL"],"title":"[ES|QL
Editor] Add `hideRunQueryButton` prop to control run query button
visibility","number":208446,"url":"https://github.com/elastic/kibana/pull/208446","mergeCommit":{"message":"[ES|QL
Editor] Add `hideRunQueryButton` prop to control run query button
visibility (#208446)\n\n## Summary\r\n\r\nWorking on \"SIEM Migrations\"
we needed to be able to have a bigger\r\nheight for the ES|QL editor. To
achive that we could use\r\n`editorIsInline` prop which extends the
height of the editor, though it\r\nwould expose \"run query\" button.
The \"run query\" button does not fit the\r\nthe UI of the \"SIEM
Migrations\" feature, so we added the new prop\r\n`hideRunQueryButton`
to be able to hide the \"run query\" button. More\r\ndetails
in\r\n[slack](https://elastic.slack.com/archives/C06RG9MTZMJ/p1737996842482479).\r\n\r\n###
Screenshot of the inlined ES|QL editor within \"SIEM
Migrations\"\r\nfeature\r\n\r\n<img width=\"1281\" alt=\"Screenshot
2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/4b6f1917-c7f0-4a73-9e3b-912257d6d825\"\r\n/>","sha":"34092ec953b95341c7c8a2f6478b99288bbdb405"}},"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/208446","number":208446,"mergeCommit":{"message":"[ES|QL
Editor] Add `hideRunQueryButton` prop to control run query button
visibility (#208446)\n\n## Summary\r\n\r\nWorking on \"SIEM Migrations\"
we needed to be able to have a bigger\r\nheight for the ES|QL editor. To
achive that we could use\r\n`editorIsInline` prop which extends the
height of the editor, though it\r\nwould expose \"run query\" button.
The \"run query\" button does not fit the\r\nthe UI of the \"SIEM
Migrations\" feature, so we added the new prop\r\n`hideRunQueryButton`
to be able to hide the \"run query\" button. More\r\ndetails
in\r\n[slack](https://elastic.slack.com/archives/C06RG9MTZMJ/p1737996842482479).\r\n\r\n###
Screenshot of the inlined ES|QL editor within \"SIEM
Migrations\"\r\nfeature\r\n\r\n<img width=\"1281\" alt=\"Screenshot
2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/4b6f1917-c7f0-4a73-9e3b-912257d6d825\"\r\n/>","sha":"34092ec953b95341c7c8a2f6478b99288bbdb405"}}]}]
BACKPORT-->

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
e40pud added a commit that referenced this pull request Jan 28, 2025
## Summary

With these changes we make ES|QL editor inlined which increases the
default height of it.

This is possible after we allowed the ES|QL editor to hide "run query"
button when inlined prop is used
#208446

<img width="1281" alt="Screenshot 2025-01-27 at 21 31 24"
src="https://github.com/user-attachments/assets/e44bbe18-538a-411a-bb84-59a080014c8f"
/>

> [!NOTE]  
> This feature needs `siemMigrationsEnabled` experimental flag enabled
to work.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 28, 2025
## Summary

With these changes we make ES|QL editor inlined which increases the
default height of it.

This is possible after we allowed the ES|QL editor to hide "run query"
button when inlined prop is used
elastic#208446

<img width="1281" alt="Screenshot 2025-01-27 at 21 31 24"
src="https://github.com/user-attachments/assets/e44bbe18-538a-411a-bb84-59a080014c8f"
/>

> [!NOTE]
> This feature needs `siemMigrationsEnabled` experimental flag enabled
to work.

(cherry picked from commit 9a5df11)
kibanamachine added a commit that referenced this pull request Jan 28, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Rules migration] Inlined ES|QL editor
(#208497)](#208497)

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

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

<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"ievgen.sorokopud@elastic.co"},"sourceCommit":{"committedDate":"2025-01-28T19:07:36Z","message":"[Rules
migration] Inlined ES|QL editor (#208497)\n\n## Summary\r\n\r\nWith
these changes we make ES|QL editor inlined which increases
the\r\ndefault height of it.\r\n\r\nThis is possible after we allowed
the ES|QL editor to hide \"run query\"\r\nbutton when inlined prop is
used\r\nhttps://github.com//pull/208446\r\n\r\n<img
width=\"1281\" alt=\"Screenshot 2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/e44bbe18-538a-411a-bb84-59a080014c8f\"\r\n/>\r\n\r\n>
[!NOTE] \r\n> This feature needs `siemMigrationsEnabled` experimental
flag enabled\r\nto
work.","sha":"9a5df11b33fa7848e29ef777e5b1abd31fadd257","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","Team: SecuritySolution","backport:prev-minor"],"title":"[Rules
migration] Inlined ES|QL
editor","number":208497,"url":"https://github.com/elastic/kibana/pull/208497","mergeCommit":{"message":"[Rules
migration] Inlined ES|QL editor (#208497)\n\n## Summary\r\n\r\nWith
these changes we make ES|QL editor inlined which increases
the\r\ndefault height of it.\r\n\r\nThis is possible after we allowed
the ES|QL editor to hide \"run query\"\r\nbutton when inlined prop is
used\r\nhttps://github.com//pull/208446\r\n\r\n<img
width=\"1281\" alt=\"Screenshot 2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/e44bbe18-538a-411a-bb84-59a080014c8f\"\r\n/>\r\n\r\n>
[!NOTE] \r\n> This feature needs `siemMigrationsEnabled` experimental
flag enabled\r\nto
work.","sha":"9a5df11b33fa7848e29ef777e5b1abd31fadd257"}},"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/208497","number":208497,"mergeCommit":{"message":"[Rules
migration] Inlined ES|QL editor (#208497)\n\n## Summary\r\n\r\nWith
these changes we make ES|QL editor inlined which increases
the\r\ndefault height of it.\r\n\r\nThis is possible after we allowed
the ES|QL editor to hide \"run query\"\r\nbutton when inlined prop is
used\r\nhttps://github.com//pull/208446\r\n\r\n<img
width=\"1281\" alt=\"Screenshot 2025-01-27 at 21 31
24\"\r\nsrc=\"https://github.com/user-attachments/assets/e44bbe18-538a-411a-bb84-59a080014c8f\"\r\n/>\r\n\r\n>
[!NOTE] \r\n> This feature needs `siemMigrationsEnabled` experimental
flag enabled\r\nto
work.","sha":"9a5df11b33fa7848e29ef777e5b1abd31fadd257"}}]}] BACKPORT-->

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@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 (9.0) the previous minor version (i.e. one version back from main) Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants