-
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
Embeddable API V2: Infrastructure changes necessary to support actions #35622
Embeddable API V2: Infrastructure changes necessary to support actions #35622
Conversation
1ce9f30
to
6487d39
Compare
77dcce7
to
77958a3
Compare
I looked through the types and noticed a few things:
|
9a8d4a1
to
7f6f495
Compare
7f6f495
to
724247f
Compare
945e782
to
1a009a4
Compare
💚 Build Succeeded |
…ch was added to that function.
💚 Build Succeeded |
💚 Build Succeeded |
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.
I did some quick looking over of just the .scss
files and has some questions/suggestions.
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/dashboard_embeddable/public/embeddable/_variables.scss
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/embeddable_api/public/panel/_embeddable_panel.scss
Show resolved
Hide resolved
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
…ns/embeddable_api`
Reporting seems to still work… but need to verify when export tp png is working, broken on master.
💔 Build Failed |
This PR is just too massive, so I'm breaking apart. So far I've got:
Next step I am thinking of is adding the entire Then the final PR would be actually switching everything over to using the new embeddables. |
💔 Build Failed |
Summary
No actual functionality changes should occur because of this PR, but much of the infrastructure changed in order to support dynamic actions, as well as embeddables existing outside the context of the dashboard application itself.
dashboard_embeddable
.embeddable_api
and no longer resides inui/public
.dashboard_embeddable
code.dashboard_app
code refactored and migrated to typescript. Changes in here:DashboardStateManager
andDashboardContainer
, so url changes propagate to the container and vice versa.The most fragile parts of the code are in
dashboard_app_controller
anddashboard_state_manager
. It's very difficult to jest test these angular -> react interactions so we have to rely on selenium tests for this coverage. A good next step would be to move the filter and query bar as components of theDashboardContainer
. This would make the interactions much easier to jest test and they would be much more stable (and of course, much less angular glue code!).TODOs
renderInPanel
from API, provide as optional react component wrapper only.Related
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.Documentation added as a README.md in the
embeddable_api
folder.TODO: post final coverage numbers here...
For maintainers
This could potentially break any developers currently using the Embeddable API v1 though it's unlikely it's being used externally as it was never advertised. We always knew it would be volatile.