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

Add feature flag for new Threshold Alert details page #162394

Conversation

benakansara
Copy link
Contributor

Resolves #162393

Adds a new feature flag xpack.observability.unsafe.alertDetails.observability.enabled to show/hide threshold alert details page until it is ready for GA.

@benakansara benakansara self-assigned this Jul 24, 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.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@benakansara benakansara added Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.10.0 release_note:skip Skip the PR/issue when compiling release notes labels Jul 24, 2023
@benakansara benakansara changed the title Add feature flag for new Threshold Alert details page Adds feature flag for new Threshold Alert details page Jul 24, 2023
@benakansara benakansara changed the title Adds feature flag for new Threshold Alert details page Add feature flag for new Threshold Alert details page Jul 24, 2023
@kibana-ci
Copy link
Collaborator

💚 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 1.1MB 1.1MB +48.0B

History

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

cc @benakansara

@benakansara benakansara marked this pull request as ready for review July 24, 2023 13:56
@benakansara benakansara requested review from a team as code owners July 24, 2023 13:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

@kc13greiner kc13greiner self-requested a review July 24, 2023 16:06
Copy link
Contributor

@kc13greiner kc13greiner left a comment

Choose a reason for hiding this comment

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

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! Not sure how to test it locally :D

@benakansara
Copy link
Contributor Author

Not sure how to test it locally

@maryam-saeidi To test, you can add xpack.observability.unsafe.alertDetails.observability.enabled: true in kibana.dev.yml file. Then when you click on alert reason or "Alert details" link, it should redirect to alert details page instead of opening alert flyout.

@maryam-saeidi
Copy link
Member

@benakansara Interesting, I didn't see any usage of this flag in this PR, so I assumed it would be used later. I tested it locally, and it worked as expected 👍🏻

Where in the code are we using this flag?

@benakansara
Copy link
Contributor Author

The logic to check feature flag was already there. If we follow the pattern of feature flags of other alert details pages, we only need to add the feature flag (checking feature flag is built-in). The feature flag relies on the app name, which in this case is observability.

We are checking the feature flag here:

if (isUnsafeAlertDetailsFlag(appNameFromAlertRuleType)) {

@benakansara benakansara merged commit 5a2b80f into elastic:main Jul 27, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 27, 2023
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
Resolves elastic#162393

Adds a new feature flag
`xpack.observability.unsafe.alertDetails.observability.enabled` to
show/hide threshold alert details page until it is ready for GA.
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 release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add feature flag for new Threshold Alert details page
8 participants