-
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] [Mappings editor] Add code improvements for source field (#201188…
…) (#201577) # Backport This will backport the following commits from `main` to `8.x`: - [[Mappings editor] Add code improvements for source field (#201188)](#201188) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Elena Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-25T12:46:05Z","message":"[Mappings editor] Add code improvements for source field (#201188)\n\nCloses https://github.com/elastic/kibana/issues/200769\r\n\r\n## Summary\r\n\r\nThis PR is a follow-up to https://github.com/elastic/kibana/pull/199854\r\nand it adds the following code improvements:\r\n\r\n- Replaces Mappings-editor-context-level property `hasEnterpriceLicense`\r\nwith plugin-context-level `canUseSyntheticSource` property\r\n- Adds jest tests to check if the synthetic option is correctly\r\ndisplayed based on license\r\n- Improves readability of serializer logic for the source field\r\n\r\n\r\n**How to test:**\r\nThe same test instructions from\r\nhttps://github.com//pull/199854 can be followed with a\r\nfocus on checking that the synthetic option is only available in\r\nEnterprise license.","sha":"762bb7f59d1d980aa34358c62ae0ef53e81f726e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Mappings Editor","v9.0.0","backport:prev-minor","v8.17.0","v8.18.0"],"title":"[Mappings editor] Add code improvements for source field","number":201188,"url":"https://github.com/elastic/kibana/pull/201188","mergeCommit":{"message":"[Mappings editor] Add code improvements for source field (#201188)\n\nCloses https://github.com/elastic/kibana/issues/200769\r\n\r\n## Summary\r\n\r\nThis PR is a follow-up to https://github.com/elastic/kibana/pull/199854\r\nand it adds the following code improvements:\r\n\r\n- Replaces Mappings-editor-context-level property `hasEnterpriceLicense`\r\nwith plugin-context-level `canUseSyntheticSource` property\r\n- Adds jest tests to check if the synthetic option is correctly\r\ndisplayed based on license\r\n- Improves readability of serializer logic for the source field\r\n\r\n\r\n**How to test:**\r\nThe same test instructions from\r\nhttps://github.com//pull/199854 can be followed with a\r\nfocus on checking that the synthetic option is only available in\r\nEnterprise license.","sha":"762bb7f59d1d980aa34358c62ae0ef53e81f726e"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201188","number":201188,"mergeCommit":{"message":"[Mappings editor] Add code improvements for source field (#201188)\n\nCloses https://github.com/elastic/kibana/issues/200769\r\n\r\n## Summary\r\n\r\nThis PR is a follow-up to https://github.com/elastic/kibana/pull/199854\r\nand it adds the following code improvements:\r\n\r\n- Replaces Mappings-editor-context-level property `hasEnterpriceLicense`\r\nwith plugin-context-level `canUseSyntheticSource` property\r\n- Adds jest tests to check if the synthetic option is correctly\r\ndisplayed based on license\r\n- Improves readability of serializer logic for the source field\r\n\r\n\r\n**How to test:**\r\nThe same test instructions from\r\nhttps://github.com//pull/199854 can be followed with a\r\nfocus on checking that the synthetic option is only available in\r\nEnterprise license.","sha":"762bb7f59d1d980aa34358c62ae0ef53e81f726e"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Stoeva <[email protected]>
- Loading branch information
1 parent
f002825
commit fda12bc
Showing
12 changed files
with
93 additions
and
92 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
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
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.