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

[Custom threshold] Reintroduce no data setting in the custom threshold rule #188300

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jul 15, 2024

Fixes #188229, related to #183921, and #184465

Documentation request: elastic/observability-docs#4068

Summary

Note: I've added an item to deprecate/remove one of the no-data settings in v9.

Fixes not showing no data setting and set the related settings to false by default. Based on @maciejforcone's input, we can combine these 2 settings for simplicity, as one of them works at a time.

I also changed the tooltip according to which setting is relevant: (we use one action group for both of them in connectors)

No data (without group) Missing group (with group)
image image

Here is how the setting is applied in API:

Screen.Recording.2024-07-15.at.13.03.00.mov

@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes Feature: Custom threshold Observability custom threshold rule type labels Jul 15, 2024
@maryam-saeidi maryam-saeidi self-assigned this Jul 15, 2024
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner July 15, 2024 11:17
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team labels Jul 15, 2024
@elasticmachine
Copy link
Contributor

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

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

@@ -164,7 +164,8 @@ describe('Expression', () => {
it('should prefill the rule using the context metadata', async () => {
const index = 'changedMockedIndex';
const currentOptions: CustomThresholdPrefillOptions = {
alertOnGroupDisappear: false,
alertOnGroupDisappear: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we get rid of the alertOnGroupDisappear and just use alertOnNoData for both with and without group? Since it's now mapped to a single checkbox it seems odd to keep two separate values on our schema. Or do we need to support this for backwards compatibility?

Copy link
Member Author

@maryam-saeidi maryam-saeidi Jul 17, 2024

Choose a reason for hiding this comment

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

Yes, we need to support this for backward compatibility. I've added this item to be considered for the v9 release. (i.e. removing alertOnGroupDisappear and only using alertOnNoData)

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 18, 2024

💚 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
observability 418.9KB 419.7KB +830.0B

History

cc @maryam-saeidi

@maryam-saeidi maryam-saeidi merged commit 4552c76 into elastic:main Jul 18, 2024
22 of 23 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Jul 18, 2024
@maryam-saeidi maryam-saeidi deleted the 188229-no-data-setting-ct branch July 18, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project Feature: Custom threshold Observability custom threshold rule type release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Custom threshold] Bring back no data setting and set it to false by default
5 participants