-
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
decouple url drilldown action from Embeddable framework #175930
Conversation
/ci |
/ci |
/ci |
/ci |
/ci |
@elasticmachine merge upstream |
/ci |
/ci |
/ci |
Pinging @elastic/kibana-presentation (Team:Presentation) |
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.
Changes LGTM! Left one nit.
Tested locally in chrome by setting up a panel with all context in main and in the PR and comparing the output of a URL using all context variables.
Really great to see the shrinkage in the unit test code & complexity. That's a big part of why we're doing this, so it's great to see it paying dividends already. Nice work!
src/plugins/embeddable/public/lib/embeddables/compatibility/legacy_embeddable_to_api.ts
Outdated
Show resolved
Hide resolved
| ValueClickContext<T> | ||
| MultiValueClickContext<T> | ||
| RangeSelectContext<T> | ||
export type ChartActionContext = |
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.
Great to see the template removed from this!
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.
Lgtm, did some testing
@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.
security solution changes 👍 lgtm
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: cc @nreese |
Part of elastic#175138 and prerequisite for elastic#174960 PR decouples Url drilldown action from Embeddable framework by migrating to sets of composable interfaces. ### test instructions 1. Create panel and add "Url drilldown" 2. Verify `context` variables are populated with the same values when they were grabbed from embeddable.input and embeddable.output <img width="600" alt="Screenshot 2024-01-31 at 2 11 20 PM" src="https://github.com/elastic/kibana/assets/373691/150f7a61-911f-4fb6-bf85-5c0481865e4b"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Part of elastic#175138 and prerequisite for elastic#174960 PR decouples Url drilldown action from Embeddable framework by migrating to sets of composable interfaces. ### test instructions 1. Create panel and add "Url drilldown" 2. Verify `context` variables are populated with the same values when they were grabbed from embeddable.input and embeddable.output <img width="600" alt="Screenshot 2024-01-31 at 2 11 20 PM" src="https://github.com/elastic/kibana/assets/373691/150f7a61-911f-4fb6-bf85-5c0481865e4b"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Part of elastic#175138 and prerequisite for elastic#174960 PR decouples Url drilldown action from Embeddable framework by migrating to sets of composable interfaces. ### test instructions 1. Create panel and add "Url drilldown" 2. Verify `context` variables are populated with the same values when they were grabbed from embeddable.input and embeddable.output <img width="600" alt="Screenshot 2024-01-31 at 2 11 20 PM" src="https://github.com/elastic/kibana/assets/373691/150f7a61-911f-4fb6-bf85-5c0481865e4b"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Part of #175138 and prerequisite for #174960
PR decouples Url drilldown action from Embeddable framework by migrating to sets of composable interfaces.
test instructions
context
variables are populated with the same values when they were grabbed from embeddable.input and embeddable.output