[Presentation Util] Simplify module level services #167440
Labels
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
technical debt
Improvement of the software architecture and operational architecture
Problem
The Presentation Util plugin currently uses an overcomplicated services layer which requires us to re-state all dependencies, their types and their implementations for stubbed usage, for storybooks (which are mostly unused), and for Kibana. This services layer also causes problems in our adoption of certain Shared UX components, as instead of simply passing in the dependency directly, we need to re-state the dependency fully.
Solution
Instead of the Presentation Util module services, we should standardize on the approach used in the Embeddables plugin. See src/plugins/embeddable/public/kibana_services.ts for more information.
As part of this effort, we should ensure to remove the entire framework from the Presentation Util plugin under
src/plugins/presentation_util/public/services
so that it cannot be used again.The text was updated successfully, but these errors were encountered: