Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Lens][Embeddable] Expose the `parentApi` via the emb…
…eddable API (#202006) (#202445) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens][Embeddable] Expose the `parentApi` via the embeddable API (#202006)](#202006) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Liberati","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T11:53:34Z","message":"[Lens][Embeddable] Expose the `parentApi` via the embeddable API (#202006)\n\n## Summary\r\n\r\nFixes #199736\r\n\r\nThis PR exposes the `parentApi` when it satisfy the\r\n`PresentationContainer` type: this allows api consumers (i.e. dashboard\r\nactions) to access the full container context for complex evaluation of\r\nan action (i.e. are there other panels? what types are they made of?\r\netc...).\r\n\r\nI've limited it to `PresentationContainer` as this was the original\r\nintent of the feature request (and avoids type casting). If it needs to\r\nbe extended more another follow up can be done.","sha":"a18be1fb1719b6a1eb77b2da4d4d6b685ea02b37","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","v9.0.0","backport:prev-minor"],"title":"[Lens][Embeddable] Expose the `parentApi` via the embeddable API","number":202006,"url":"https://github.com/elastic/kibana/pull/202006","mergeCommit":{"message":"[Lens][Embeddable] Expose the `parentApi` via the embeddable API (#202006)\n\n## Summary\r\n\r\nFixes #199736\r\n\r\nThis PR exposes the `parentApi` when it satisfy the\r\n`PresentationContainer` type: this allows api consumers (i.e. dashboard\r\nactions) to access the full container context for complex evaluation of\r\nan action (i.e. are there other panels? what types are they made of?\r\netc...).\r\n\r\nI've limited it to `PresentationContainer` as this was the original\r\nintent of the feature request (and avoids type casting). If it needs to\r\nbe extended more another follow up can be done.","sha":"a18be1fb1719b6a1eb77b2da4d4d6b685ea02b37"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202006","number":202006,"mergeCommit":{"message":"[Lens][Embeddable] Expose the `parentApi` via the embeddable API (#202006)\n\n## Summary\r\n\r\nFixes #199736\r\n\r\nThis PR exposes the `parentApi` when it satisfy the\r\n`PresentationContainer` type: this allows api consumers (i.e. dashboard\r\nactions) to access the full container context for complex evaluation of\r\nan action (i.e. are there other panels? what types are they made of?\r\netc...).\r\n\r\nI've limited it to `PresentationContainer` as this was the original\r\nintent of the feature request (and avoids type casting). If it needs to\r\nbe extended more another follow up can be done.","sha":"a18be1fb1719b6a1eb77b2da4d4d6b685ea02b37"}}]}] BACKPORT--> Co-authored-by: Marco Liberati <[email protected]>
- Loading branch information