Conversation
src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx
Outdated
Show resolved
Hide resolved
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
This pull request introduces a new shared package, `@kbn/dashboards-selector`, to enable reuse of the combobox component. This component is currently used to link dashboards to rules, and it will now also be used to link dashboards to SLOs. The component I want to reuse in SLO: <img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18" src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904" /> This update is necessary for the implementation of #233265. --------- Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
5e327c6 to
aa2c98b
Compare
| security?: SecurityPluginStart; | ||
| fieldsMetadata: FieldsMetadataPublicStart; | ||
| apmSourcesAccess: ApmSourceAccessPluginStart; | ||
| contentManagement: ContentManagementPublicStart; |
There was a problem hiding this comment.
Linking with this issue, where we can remove the dependency to the contentManagement plugin
There was a problem hiding this comment.
Just to clarify, this comment of mine regarding removing dependency to the contentManagement plugin, is something that does NOT need to be addressed in current PR. I put it here as a reminder for when addressing this issue.
I also just read Dominique's here, so it might be that we don't need to replace anything (I need to refresh what it is about). @cesco-f Can you weigh in here if we can replace the use of dashboardServiceProvider with the api in the rules form?
There was a problem hiding this comment.
I left a comment there!
There was a problem hiding this comment.
Thanks, we discussed about it! With the new abstract dashboards selector component you introduce in this PR, there is no need to use the linked dashboards api in the rule form.
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Saved Objects .kibana field count
History
|
| import { i18n } from '@kbn/i18n'; | ||
| import React from 'react'; | ||
| import { Controller, useFormContext } from 'react-hook-form'; | ||
| import { DashboardsSelector } from '@kbn/dashboards-selector'; |
There was a problem hiding this comment.
Great for creating this reusable component!
mgiota
left a comment
There was a problem hiding this comment.
@cesco-f I tested it and it works fine. Great for reusing the shareable dashboards-selector component and driving all the discussions with the core/platform team!
I am pasting here @kdelemme's text, which is something I would like to test, but haven't done so yet. Did you try this? I want us to be sure we won't have issues with SLOs that have been created before the introduction of new dashboards artifacts.
One thing I would like to test is the upgrade path (should be fine since everything is optional): creating an SLO on main, and then running this branch and trying to read/edit this SLO. Could you confirm everything is fine on this side?
I did when testing the backend part, but please double check before approving, thanks 😊 |
This pull request introduces a new shared package, `@kbn/dashboards-selector`, to enable reuse of the combobox component. This component is currently used to link dashboards to rules, and it will now also be used to link dashboards to SLOs. The component I want to reuse in SLO: <img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18" src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904" /> This update is necessary for the implementation of elastic#233265. --------- Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
This PR is a follow-up of elastic#232583 and it closes elastic#228509. Dashboards can be linked to SLOs. https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This pull request introduces a new shared package, `@kbn/dashboards-selector`, to enable reuse of the combobox component. This component is currently used to link dashboards to rules, and it will now also be used to link dashboards to SLOs. The component I want to reuse in SLO: <img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18" src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904" /> This update is necessary for the implementation of elastic#233265. --------- Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
This PR is a follow-up of elastic#232583 and it closes elastic#228509. Dashboards can be linked to SLOs. https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This pull request introduces a new shared package, `@kbn/dashboards-selector`, to enable reuse of the combobox component. This component is currently used to link dashboards to rules, and it will now also be used to link dashboards to SLOs. The component I want to reuse in SLO: <img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18" src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904" /> This update is necessary for the implementation of elastic#233265. --------- Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
This PR is a follow-up of elastic#232583 and it closes elastic#228509. Dashboards can be linked to SLOs. https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This PR is a follow-up of #232583 and it closes #228509.
Dashboards can be linked to SLOs.
Screen.Recording.2025-08-28.at.10.36.26.mov