-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Unify internal api into a single object (#20…
…4194) (#204776) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens][Embeddable] Unify internal api into a single object (#204194)](#204194) <!--- 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-18T15:15:43Z","message":"[Lens][Embeddable] Unify internal api into a single object (#204194)\n\n## Summary\r\n\r\nFixes #198753 \r\n\r\nInitially `visualizationContext` was migrated from the legacy system\r\n\"as-is\" when refactoring to the new system.\r\nThis PR merges the `visualizationContextHelpers` within the Lens\r\n`internalApi` to avoid:\r\n* attributes unsync (it rely on the `attributes` variable which is hold\r\nby the `internalApi` already)\r\n* single place to find internal variables\r\n\r\nTook also the opportunity to simplify the mocks here:\r\n* use the actual implementation for the internalApi vs mocks\r\n * this would simplify also the maintenance of types in the future\r\n* adapted the tests to use the new implementation and `internalApi`","sha":"6490c45550446a79794135ae66e4b75e473c38f5","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] Unify internal api into a single object","number":204194,"url":"https://github.com/elastic/kibana/pull/204194","mergeCommit":{"message":"[Lens][Embeddable] Unify internal api into a single object (#204194)\n\n## Summary\r\n\r\nFixes #198753 \r\n\r\nInitially `visualizationContext` was migrated from the legacy system\r\n\"as-is\" when refactoring to the new system.\r\nThis PR merges the `visualizationContextHelpers` within the Lens\r\n`internalApi` to avoid:\r\n* attributes unsync (it rely on the `attributes` variable which is hold\r\nby the `internalApi` already)\r\n* single place to find internal variables\r\n\r\nTook also the opportunity to simplify the mocks here:\r\n* use the actual implementation for the internalApi vs mocks\r\n * this would simplify also the maintenance of types in the future\r\n* adapted the tests to use the new implementation and `internalApi`","sha":"6490c45550446a79794135ae66e4b75e473c38f5"}},"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/204194","number":204194,"mergeCommit":{"message":"[Lens][Embeddable] Unify internal api into a single object (#204194)\n\n## Summary\r\n\r\nFixes #198753 \r\n\r\nInitially `visualizationContext` was migrated from the legacy system\r\n\"as-is\" when refactoring to the new system.\r\nThis PR merges the `visualizationContextHelpers` within the Lens\r\n`internalApi` to avoid:\r\n* attributes unsync (it rely on the `attributes` variable which is hold\r\nby the `internalApi` already)\r\n* single place to find internal variables\r\n\r\nTook also the opportunity to simplify the mocks here:\r\n* use the actual implementation for the internalApi vs mocks\r\n * this would simplify also the maintenance of types in the future\r\n* adapted the tests to use the new implementation and `internalApi`","sha":"6490c45550446a79794135ae66e4b75e473c38f5"}}]}] BACKPORT--> Co-authored-by: Marco Liberati <[email protected]>
- Loading branch information
1 parent
dee44c3
commit 5f127c9
Showing
11 changed files
with
87 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
x-pack/plugins/lens/public/react_embeddable/initializers/initialize_visualization_context.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.