[Dashboard][Controls Anywhere] Move panel placement registry to presentationUtil plugin#246628
[Dashboard][Controls Anywhere] Move panel placement registry to presentationUtil plugin#246628Zacqary merged 10 commits intoelastic:mainfrom
Conversation
| painlessLab: 6299 | ||
| presentationPanel: 11418 | ||
| presentationUtil: 9000 | ||
| presentationUtil: 9948 |
There was a problem hiding this comment.
This PR does increase the size of presentationUtil, but does it by removing code from dashboard, so it's about even
@elastic/kibana-operations As recommended by CI I ran node scripts/build_kibana_platform_plugins --focus presentationUtil --update-limits. I'm not sure if it was supposed to update limits for plugins besides the --focus plugin, but this is what it did.
# Conflicts: # packages/kbn-optimizer/limits.yml
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
There was a problem hiding this comment.
Left one nit but otherwise LGTM - changes are straightforward. Maybe worth getting @nreese's input on the decision to move this to presentationUtil for some extra confidence - but the code looks good to me, and I tested to ensure that the Links panel still respects its panel placement :)
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
|
Would it make more sense to move the registry to embeddables? Maybe there should be a quick conversation about the best long term place for this registry. |
nreese
left a comment
There was a problem hiding this comment.
kibana-presentation changes LGTM
code review only
|
Starting backport for target branches: 9.2 |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
cc @Zacqary |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
… presentationUtil plugin (#246950) # Backport This will backport the following commits from `main` to `9.2`: - [[Dashboard][Controls Anywhere] Move panel placement registry to presentationUtil plugin (#246628)](#246628) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Moves the panel placement registry from the
dashboardplugin into thepresentationUtilplugin. This is necessary to avoid circular dependency issues in the Controls Anywhere project.Background
Controls Anywhere introduces the concept of dashboard controls being rendered as movable panels. For this, we need to define their
PanelPlacementStrategy: creating them with a very short height, medium width, and in the top left corner of the dashboard.This required adding the
dashboardplugin as arequiredPluginforcontrols.Unfortunately, #245299 introduced
onechatas a dependency toobservabilityAIAssistant, triggering this circular dependency cycle:Unfortunately, Kibana architecture doesn't have a good way of moving registries into
@kbnpackages yet, so we need to find a safer plugin for it to live in. We determined thatcontrolsanddashboardboth depend on thepresentationUtilplugin without incident, and it's already a place to put other miscellaneous dashboard-related things.Checklist