-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent #155868
[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent #155868
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements, LGTM 👍🏻
x-pack/plugins/observability/public/pages/slo_details/components/header_control.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I just notice is the react errors in the console:
- When cloning from the slo details page
- When deleting from the slo details page
It does not happen all the time, maybe because the component unmount after the state is updated, but sometime it does not resulting in a "cannot update state after component unmounted":
…ts/header_control.tsx Co-authored-by: Kevin Delemme <[email protected]>
@kdelemme Noticed them too. Created #155887. Will attempt to fix them for 8.8.0. |
…-ref HEAD~1..HEAD --fix'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since the Errors are warning that won't be displayed in production bundle. But let's try to fix this, I'm not a huge fan of shipping known errors after FF (even if this one is small, and won't cause real issue)
…-actions-menu-consistency
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Agree and same. Created #155953 to fix. |
…> SLO List item > Actions menu more consistent (elastic#155868) Co-authored-by: Kevin Delemme <[email protected]> Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 1dcf1f8) # Conflicts: # x-pack/plugins/observability/public/pages/slo_details/components/header_control.tsx # x-pack/plugins/observability/public/pages/slo_details/slo_details.test.tsx
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… List > SLO List item > Actions menu more consistent (#155868) (#156157) # Backport This will backport the following commits from `main` to `8.8`: - [[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent (#155868)](#155868) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Coen Warmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-04-26T17:20:43Z","message":"[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent (#155868)\n\nCo-authored-by: Kevin Delemme <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"1dcf1f86a856a7251df7bd06b47820ed64d033b8","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v8.8.0"],"number":155868,"url":"https://github.com/elastic/kibana/pull/155868","mergeCommit":{"message":"[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent (#155868)\n\nCo-authored-by: Kevin Delemme <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"1dcf1f86a856a7251df7bd06b47820ed64d033b8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/155868","number":155868,"mergeCommit":{"message":"[SLO][SLO Detail] Make SLO Detail > Header Actions menu and SLO List > SLO List item > Actions menu more consistent (#155868)\n\nCo-authored-by: Kevin Delemme <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"1dcf1f86a856a7251df7bd06b47820ed64d033b8"}}]}] BACKPORT-->
Resolves #155849
📝 Summary
This makes the SLO Details > Header Actions menu consistent with the SLO List item > Actions menu.
Screen.Recording.2023-04-26.at.14.56.01.mov
✅ Checklist