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

fix(slo): Add missing new context providers around burn rate editor #201199

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

kdelemme
Copy link
Contributor

@kdelemme kdelemme commented Nov 21, 2024

Related to #198683

🍒 Summary

This PR addresses an issue with the burn rate editor registration. We forgot to wrap this component with the new context providers introduced while migrating to the new router.
This was making the editor fails when opened from outside the SLO page.

🧬 Testing

Make sure you can create/edit an SLO burn rate rule from the Observability > Rules page

@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.17.0 Team:obs-ux-management Observability Management User Experience Team labels Nov 21, 2024
@kdelemme kdelemme self-assigned this Nov 21, 2024
@kdelemme kdelemme marked this pull request as ready for review November 21, 2024 14:20
@kdelemme kdelemme requested a review from a team as a code owner November 21, 2024 14:20
@elasticmachine
Copy link
Contributor

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

Comment on lines +70 to +72
ruleParamsExpression: lazyWithContextProviders(
lazy(() => import('../components/burn_rate_rule_editor'))
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

💬 Same as alertDetailsAppSection below

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Nov 21, 2024
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 docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@fkanout fkanout self-requested a review November 21, 2024 14:38
Copy link
Contributor

@fkanout fkanout left a comment

Choose a reason for hiding this comment

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

The creation form loads correctly now.

@kdelemme kdelemme enabled auto-merge (squash) November 21, 2024 15:09
@kdelemme kdelemme merged commit 324ecc2 into elastic:main Nov 21, 2024
33 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.x

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
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 Nov 21, 2024
…itor (#201199) (#201233)

# Backport

This will backport the following commits from `main` to `8.x`:
- [fix(slo): Add missing new context providers around burn rate editor
(#201199)](#201199)

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

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

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T16:12:10Z","message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9","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","ci:project-deploy-observability","Team:obs-ux-management","v8.17.0"],"title":"fix(slo):
Add missing new context providers around burn rate
editor","number":201199,"url":"https://github.com/elastic/kibana/pull/201199","mergeCommit":{"message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201199","number":201199,"mergeCommit":{"message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 21, 2024
…ditor (#201199) (#201232)

# Backport

This will backport the following commits from `main` to `8.17`:
- [fix(slo): Add missing new context providers around burn rate editor
(#201199)](#201199)

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

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

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T16:12:10Z","message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9","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","ci:project-deploy-observability","Team:obs-ux-management","v8.17.0"],"title":"fix(slo):
Add missing new context providers around burn rate
editor","number":201199,"url":"https://github.com/elastic/kibana/pull/201199","mergeCommit":{"message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201199","number":201199,"mergeCommit":{"message":"fix(slo):
Add missing new context providers around burn rate editor
(#201199)","sha":"324ecc2c37e59f55643bd5685bb1db08be4a4fb9"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <[email protected]>
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 release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants