-
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] use generic edit actions in the SLO embeddables #186374
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
24ec6f5
to
56db7f8
Compare
2339730
to
4e78980
Compare
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
i18n.translate('xpack.slo.editSloOverviewEmbeddableTitle.typeDisplayName', { | ||
defaultMessage: 'criteria', | ||
}), | ||
isEditingEnabled: () => api.getSloGroupOverviewConfig().overviewMode === 'groups', |
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.
@ThomThomson Before I was using a custom action with an isCompatible method. Now that I removed the custom action I check only for the overviewMode to decide if editing is enabled, which is specific to the logic of the embeddable.
Do I need to do the rest checks I was doing here as well?
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.
No you don't need to do those checks anymore! Those checks were there to prevent other embeddables from ending up with the edit SLO overview
action, but now that it's using a generic action that isn't a risk.
0005064
to
59f24da
Compare
@elasticmachine merge upstream |
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.
Config editing still works !!
Hi @mgiota @shahzad31 ,
|
Yep there is an issue for this already and I plan to work on this right after this one.
This is not something we handle, this is Kibana-presentation team. FYI there is an open PR hover actions, where a few actions, edit be one of them, appear without clicking on the ... button, which is pretty cool! My main question is about the |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @mgiota |
Fixes elastic#186365 ## SLO Group Overview Embeddable - `Edit criteria` appears on top - Edit criteria does not appear under `More` actions - Inline Edit criteria is removed from the panel https://github.com/elastic/kibana/assets/2852703/4b322361-08dd-4f3f-8440-2d4380efa2bd ## SLO Alerts Embeddable - `Edit configuration` appears on top - Edit configuration does not appear under `More` actions - `X SLOs included` within the panel still opens the Edit configuration https://github.com/elastic/kibana/assets/2852703/c609fa70-4c1f-4aa5-aa17-4e765456f7e6 --------- Co-authored-by: Kibana Machine <[email protected]>
Fixes #186365
SLO Group Overview Embeddable
Edit criteria
appears on topMore
actionsScreen.Recording.2024-06-20.at.22.57.40.mov
SLO Alerts Embeddable
Edit configuration
appears on topMore
actionsX SLOs included
within the panel still opens the Edit configurationScreen.Recording.2024-06-19.at.09.24.46.mov