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] Rename the setting to a more generic one and move to the general section #182074

Merged
merged 7 commits into from
May 1, 2024

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Apr 30, 2024

Summary

Renames the setting from discover:enableESQL to enableESQL and moves it to the General Section

image

We checked the telemetry and a very small percentage of users have switched off this setting. It was also on tech preview so we decided in favor of this change as more and more applications are using this setting to hide ESQL from their applications.

image

Release note

We renamed the advanced setting which hides the ES|QL from the UI from discover:enableESQL to enableESQL. You have to switch it off again if you want to disable ES|QL features from your kibana applications.

Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@stratoula stratoula changed the title Rename setting esql [ES|QL] Rename the setting to a more generic one and move to the general section Apr 30, 2024
@stratoula stratoula added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.14.0 v8.15.0 Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana release_note:breaking labels Apr 30, 2024
@stratoula stratoula marked this pull request as ready for review April 30, 2024 11:42
@stratoula stratoula requested review from a team as code owners April 30, 2024 11:42
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

response ops changes LGTM

Copy link
Contributor

@tonyghiani tonyghiani left a comment

Choose a reason for hiding this comment

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

logs_explorer changes LGTM

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

ML changes LGTM

@stratoula
Copy link
Contributor Author

/ci

@kibana-ci
Copy link
Collaborator

kibana-ci commented May 1, 2024

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dataVisualizer 669 651 -18
ml 2033 2014 -19
total -37

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/discover-utils 82 81 -1
@kbn/esql-utils 22 23 +1
total -0

Async chunks

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

id before after diff
dataVisualizer 658.4KB 658.5KB +136.0B
discover 637.2KB 637.2KB +22.0B
lens 1.4MB 1.4MB +101.0B
logsExplorer 317.9KB 317.9KB -9.0B
ml 4.2MB 4.2MB +4.0B
stackAlerts 82.3KB 82.3KB -9.0B
total +245.0B

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count - 5887 +5887
total size - 6.7MB +6.7MB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 35.0KB 35.1KB +84.0B
ml 77.2KB 77.2KB +40.0B
total +124.0B
Unknown metric groups

API count

id before after diff
@kbn/discover-utils 110 109 -1
@kbn/esql-utils 24 25 +1
total -0

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

Code review, changes looks ok with no major issues.

@@ -50,7 +50,7 @@ export const QueryFormTypeChooser: React.FC<QueryFormTypeProps> = ({
onFormTypeSelect,
}) => {
const { uiSettings } = useTriggerUiActionServices();
const isEsqlEnabled = uiSettings?.get('discover:enableESQL');
const isEsqlEnabled = uiSettings?.get('enableESQL');
Copy link
Member

Choose a reason for hiding this comment

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

What about using the ENABLE_ESQL constant used also in a previous file for the same code?

@stratoula stratoula merged commit f3d18fa into elastic:main May 1, 2024
18 checks passed
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.14 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 182074

Questions ?

Please refer to the Backport tool documentation

@stratoula
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.14

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

Questions ?

Please refer to the Backport tool documentation

stratoula added a commit to stratoula/kibana that referenced this pull request May 1, 2024
…ral section (elastic#182074)

## Summary

Renames the setting from discover:enableESQL to enableESQL and moves it
to the General Section

<img width="985" alt="image"
src="https://github.com/elastic/kibana/assets/17003240/ebafe7cd-4695-413c-a0e3-90e3574139e5">

We checked the telemetry and a very small percentage of users have
switched off this setting. It was also on tech preview so we decided in
favor of this change as more and more applications are using this
setting to hide ESQL from their applications.

<img width="850" alt="image"
src="https://github.com/elastic/kibana/assets/17003240/404f2494-8a17-4a9d-943a-d9d72b324bc0">

### Release note
We renamed the advanced setting which hides the ES|QL from the UI from
`discover:enableESQL` to `enableESQL`. You have to switch it off again
if you want to disable ES|QL features from your kibana applications.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit f3d18fa)

# Conflicts:
#	config/serverless.yml
#	packages/kbn-management/settings/setting_ids/index.ts
#	x-pack/plugins/data_visualizer/tsconfig.json
#	x-pack/plugins/lens/public/trigger_actions/open_lens_config/in_app_embeddable_edit/in_app_embeddable_edit_action_helpers.tsx
#	x-pack/plugins/ml/tsconfig.json
stratoula added a commit that referenced this pull request May 1, 2024
…he general section (#182074) (#182252)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[ES|QL] Rename the setting to a more generic one and move to the
general section
(#182074)](#182074)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-05-01T14:13:53Z","message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:breaking","backport:prev-minor","Team:Obs
AI
Assistant","Feature:ES|QL","ci:project-deploy-observability","v8.14.0","Team:ESQL","v8.15.0"],"number":182074,"url":"https://github.com/elastic/kibana/pull/182074","mergeCommit":{"message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182074","number":182074,"mergeCommit":{"message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/17003240/404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
TinLe added a commit to TinLe/kibana that referenced this pull request May 1, 2024
* master: (1654 commits)
  Bump ejs from 3.1.9 to 3.1.10
  Don't render exceptions flyout if data is loading (elastic#181588)
  Enable value list modal (elastic#181593)
  skip flaky suite (elastic#181777)
  skip failing test suite (elastic#182263)
  [Mappings Editor] Disable _source field in serverless (elastic#181712)
  [data.search] Fix unhandled promise rejections (elastic#181785)
  [Fleet] Fix logic for detecting first time Elastic Agent users (elastic#182214)
  [ML] Decouple data_visualizer from MapEmbeddable (elastic#181928)
  [ES|QL] Sorting accepts expressions (elastic#181916)
  [ML] Single Metric Viewer: ensures chart displays correctly when opening from a job annotation (elastic#182176)
  Adding optional Description field to Roles APIs (elastic#182039)
  Upgrade Markdown-it to 14.1.0 (elastic#182244)
  Bump xml-crypto from 5.0.0 to 6.0.0
  [DOCS] Fix docs and screenshots for rule creation changes (elastic#181925)
  Update dependency elastic-apm-node to ^4.5.3 (main) (elastic#182236)
  [Obs AI Assistant] register alert details context in observability plugin (elastic#181501)
  Add `@typescript-eslint/no-floating-promises` (elastic#181456)
  [Playground] Propagate Error message into FE (elastic#182201)
  [ES|QL] Rename the setting to a more generic one and move to the general section (elastic#182074)
  ...
jbudz pushed a commit that referenced this pull request May 2, 2024
## Summary

Follow up to this PR: #181616
Renaming `discover:enableEsql` to `enableESQL` according to this change:
#182074
yuliacech pushed a commit to yuliacech/kibana that referenced this pull request May 3, 2024
…ral section (elastic#182074)

## Summary

Renames the setting from discover:enableESQL to enableESQL and moves it
to the General Section

<img width="985" alt="image"
src="https://github.com/elastic/kibana/assets/17003240/ebafe7cd-4695-413c-a0e3-90e3574139e5">

We checked the telemetry and a very small percentage of users have
switched off this setting. It was also on tech preview so we decided in
favor of this change as more and more applications are using this
setting to hide ESQL from their applications.

<img width="850" alt="image"
src="https://github.com/elastic/kibana/assets/17003240/404f2494-8a17-4a9d-943a-d9d72b324bc0">

### Release note
We renamed the advanced setting which hides the ES|QL from the UI from
`discover:enableESQL` to `enableESQL`. You have to switch it off again
if you want to disable ES|QL features from your kibana applications.

---------

Co-authored-by: kibanamachine <[email protected]>
yuliacech pushed a commit to yuliacech/kibana that referenced this pull request May 3, 2024
## Summary

Follow up to this PR: elastic#181616
Renaming `discover:enableEsql` to `enableESQL` according to this change:
elastic#182074
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) ci:project-deploy-observability Create an Observability project Feature:ES|QL ES|QL related features in Kibana release_note:breaking Team:ESQL ES|QL related features in Kibana Team:Obs AI Assistant v8.14.0 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.