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

Deprecate feature flag for Custom threshold rule #172584

Merged

Conversation

benakansara
Copy link
Contributor

@benakansara benakansara commented Dec 5, 2023

Resolves #171406

  • Deprecates following feature flag used for enabling/disabling Custom threshold rule:
xpack.observability.unsafe.thresholdRule.enabled
  • Removes usage of this flag from code.
  • Adding this flag in kibana.yml will generate following warning:
[WARN ][config.deprecation] You no longer need to configure "xpack.observability.unsafe.thresholdRule.enabled".

@benakansara benakansara self-assigned this Dec 5, 2023
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@benakansara benakansara added release_note:skip Skip the PR/issue when compiling release notes v8.12.0 Team:obs-ux-management Observability Management User Experience Team labels Dec 5, 2023
@benakansara benakansara marked this pull request as ready for review December 5, 2023 16:47
@benakansara benakansara requested review from a team as code owners December 5, 2023 16:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Copy link
Member

@maryam-saeidi maryam-saeidi 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 worked as expected, just waiting for the response of comments on the other PR (this and this)

@benakansara benakansara removed the request for review from a team December 6, 2023 11:17
@benakansara
Copy link
Contributor Author

Tested locally and worked as expected, just waiting for the response of comments on the other PR (this and this)

Made thresholdRule optional in config schema.

Copy link
Contributor

@ersin-erdal ersin-erdal left a comment

Choose a reason for hiding this comment

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

ResponseOps changes LGTM

Copy link
Member

@maryam-saeidi maryam-saeidi left a comment

Choose a reason for hiding this comment

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

LGTM! Just added one question :)

x-pack/plugins/observability/server/index.ts Show resolved Hide resolved
@maryam-saeidi
Copy link
Member

maryam-saeidi commented Dec 6, 2023

@benakansara
Could we also remove other instances of '--xpack.observability.unsafe.thresholdRule.enabled=true' like this one?

I see these instances in the code: (from what I see you only removed one of them)

image

@benakansara
Copy link
Contributor Author

benakansara commented Dec 6, 2023

Could we also remove other instances of '--xpack.observability.unsafe.thresholdRule.enabled=true' like this one?
I see these instances in the code: (from what I see you only removed one of them)

For the first line, same reason as #172554 (comment)

I didn't remove instances from serverless tests, as I wasn't sure about how to deprecate/remove existing feature flag from there.

@benakansara
Copy link
Contributor Author

@maryam-saeidi I have removed feature flag usages from serverless tests.

@benakansara
Copy link
Contributor Author

/oblt-deploy-serverless

@benakansara benakansara enabled auto-merge (squash) December 7, 2023 07:59
@benakansara benakansara merged commit 16f09fd into elastic:main Dec 7, 2023
39 checks passed
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

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

id before after diff
observability 102.6KB 102.6KB -32.0B

History

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

cc @benakansara

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 7, 2023
Resolves elastic#171406

- Deprecates following feature flag used for enabling/disabling Custom
threshold rule:
```
xpack.observability.unsafe.thresholdRule.enabled
```
- Removes usage of this flag from code.
- Adding this flag in `kibana.yml` will generate following warning:
```
[WARN ][config.deprecation] You no longer need to configure "xpack.observability.unsafe.thresholdRule.enabled".
```

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 16f09fd)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.12

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 Dec 7, 2023
…72792)

# Backport

This will backport the following commits from `main` to `8.12`:
- [Deprecate feature flag for Custom threshold rule
(#172584)](#172584)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Bena
Kansara","email":"69037875+benakansara@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-07T09:34:11Z","message":"Deprecate
feature flag for Custom threshold rule (#172584)\n\nResolves
https://github.com/elastic/kibana/issues/171406\r\n\r\n- Deprecates
following feature flag used for enabling/disabling Custom\r\nthreshold
rule:\r\n```\r\nxpack.observability.unsafe.thresholdRule.enabled\r\n```\r\n-
Removes usage of this flag from code.\r\n- Adding this flag in
`kibana.yml` will generate following warning:\r\n```\r\n[WARN
][config.deprecation] You no longer need to configure
\"xpack.observability.unsafe.thresholdRule.enabled\".\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"16f09fdcc45a2df9a3a7868ea9590227627b82ad","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.12.0","Team:obs-ux-management","v8.13.0"],"number":172584,"url":"https://github.com/elastic/kibana/pull/172584","mergeCommit":{"message":"Deprecate
feature flag for Custom threshold rule (#172584)\n\nResolves
https://github.com/elastic/kibana/issues/171406\r\n\r\n- Deprecates
following feature flag used for enabling/disabling Custom\r\nthreshold
rule:\r\n```\r\nxpack.observability.unsafe.thresholdRule.enabled\r\n```\r\n-
Removes usage of this flag from code.\r\n- Adding this flag in
`kibana.yml` will generate following warning:\r\n```\r\n[WARN
][config.deprecation] You no longer need to configure
\"xpack.observability.unsafe.thresholdRule.enabled\".\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"16f09fdcc45a2df9a3a7868ea9590227627b82ad"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172584","number":172584,"mergeCommit":{"message":"Deprecate
feature flag for Custom threshold rule (#172584)\n\nResolves
https://github.com/elastic/kibana/issues/171406\r\n\r\n- Deprecates
following feature flag used for enabling/disabling Custom\r\nthreshold
rule:\r\n```\r\nxpack.observability.unsafe.thresholdRule.enabled\r\n```\r\n-
Removes usage of this flag from code.\r\n- Adding this flag in
`kibana.yml` will generate following warning:\r\n```\r\n[WARN
][config.deprecation] You no longer need to configure
\"xpack.observability.unsafe.thresholdRule.enabled\".\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"16f09fdcc45a2df9a3a7868ea9590227627b82ad"}}]}]
BACKPORT-->

Co-authored-by: Bena Kansara <69037875+benakansara@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.12.0 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Custom threshold rule] Change title to Beta and remove/deprecate feature flag
7 participants