mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
# Backport This will backport the following commits from `main` to `9.0`: - [Removed switchToModelVersionAt from SO API definition (#219029)](https://github.com/elastic/kibana/pull/219029) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Christiane (Tina) Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2025-04-26T15:00:09Z","message":"Removed switchToModelVersionAt from SO API definition (#219029)\n\n## Summary\nPart of https://github.com/elastic/kibana/issues/201807\n\n**Strategy**:\nThis PR assumes that `switchToModelVersionAt` has done it’s job and all\nSO type owners now use `modelVersions` instead of `migrations`.\nIt takes the approach of trusting that this is fine™\n\n**Changes in this PR:**\n- `switchToModelVersionAt` removed from all registered saved objects, so\ntheir mapping hash had to be updated.\n- Implements `globalSwitchToModelVersionAt` directly in `version_map`\n- Updates logic to prioritize `modelVersions` over `migrations` in\n`getLatestMappingsModelVersion`, that previously relied on\n`switchToModelVersionAt` being set\n- Updates unit tests to match the refactored logic\n- Updates snapshots\n- Adapts SO types registered in the **cases**, **SLO** and **encrypted\nsaved objects** plugins.\n- Updates docs\n\n**Risks**:\n- Plugin developers disregard the deprecated status of `migrations` and\nintroduce new versions, which will not be BWC. Saved object type hash\nchanges will notify the core team for a code owner review. The core team\nneeds to investigate the related changes and provide feedback.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"19c017a111ff79155b2e7f94abe7601efd3d86c2","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:Saved Objects","technical debt","release_note:skip","backport:prev-minor","Team:obs-ux-management","v9.1.0"],"title":"Removed switchToModelVersionAt from SO API definition","number":219029,"url":"https://github.com/elastic/kibana/pull/219029","mergeCommit":{"message":"Removed switchToModelVersionAt from SO API definition (#219029)\n\n## Summary\nPart of https://github.com/elastic/kibana/issues/201807\n\n**Strategy**:\nThis PR assumes that `switchToModelVersionAt` has done it’s job and all\nSO type owners now use `modelVersions` instead of `migrations`.\nIt takes the approach of trusting that this is fine™\n\n**Changes in this PR:**\n- `switchToModelVersionAt` removed from all registered saved objects, so\ntheir mapping hash had to be updated.\n- Implements `globalSwitchToModelVersionAt` directly in `version_map`\n- Updates logic to prioritize `modelVersions` over `migrations` in\n`getLatestMappingsModelVersion`, that previously relied on\n`switchToModelVersionAt` being set\n- Updates unit tests to match the refactored logic\n- Updates snapshots\n- Adapts SO types registered in the **cases**, **SLO** and **encrypted\nsaved objects** plugins.\n- Updates docs\n\n**Risks**:\n- Plugin developers disregard the deprecated status of `migrations` and\nintroduce new versions, which will not be BWC. Saved object type hash\nchanges will notify the core team for a code owner review. The core team\nneeds to investigate the related changes and provide feedback.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"19c017a111ff79155b2e7f94abe7601efd3d86c2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219029","number":219029,"mergeCommit":{"message":"Removed switchToModelVersionAt from SO API definition (#219029)\n\n## Summary\nPart of https://github.com/elastic/kibana/issues/201807\n\n**Strategy**:\nThis PR assumes that `switchToModelVersionAt` has done it’s job and all\nSO type owners now use `modelVersions` instead of `migrations`.\nIt takes the approach of trusting that this is fine™\n\n**Changes in this PR:**\n- `switchToModelVersionAt` removed from all registered saved objects, so\ntheir mapping hash had to be updated.\n- Implements `globalSwitchToModelVersionAt` directly in `version_map`\n- Updates logic to prioritize `modelVersions` over `migrations` in\n`getLatestMappingsModelVersion`, that previously relied on\n`switchToModelVersionAt` being set\n- Updates unit tests to match the refactored logic\n- Updates snapshots\n- Adapts SO types registered in the **cases**, **SLO** and **encrypted\nsaved objects** plugins.\n- Updates docs\n\n**Risks**:\n- Plugin developers disregard the deprecated status of `migrations` and\nintroduce new versions, which will not be BWC. Saved object type hash\nchanges will notify the core team for a code owner review. The core team\nneeds to investigate the related changes and provide feedback.\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"19c017a111ff79155b2e7f94abe7601efd3d86c2"}}]}] BACKPORT--> --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
data | ||
performance | ||
screenshotting | ||
advanced_settings.mdx | ||
apm_ui.png | ||
building_a_kibana_distributable.mdx | ||
ci.mdx | ||
configuring_cross_cluster_search.mdx | ||
data_views.mdx | ||
debugging.mdx | ||
debugging_fips_test_failures.mdx | ||
development_windows.mdx | ||
endpoints.mdx | ||
expressions.mdx | ||
fips_test_failure_license_override_example.png | ||
generating_oas_for_http_apis.mdx | ||
kibana_page_template.mdx | ||
saved_objects.mdx | ||
submit_a_pull_request.mdx | ||
testing_plugins.mdx | ||
versioning_http_apis.mdx | ||
versioning_interfaces.mdx |