mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -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> |
||
---|---|---|
.. | ||
images | ||
add-data-tutorials.md | ||
advanced.md | ||
application-service.md | ||
building-kibana.md | ||
ci-metrics.md | ||
configuration-service.md | ||
contributing.md | ||
core-packages.md | ||
dashboard-enhanced-plugin.md | ||
dependencies-versions.md | ||
development-basepath.md | ||
development-best-practices.md | ||
development-documentation.md | ||
development-getting-started.md | ||
development-github.md | ||
development-plugin-resources.md | ||
development-pull-request.md | ||
development-security.md | ||
development-telemetry.md | ||
development-tests.md | ||
development-visualize-index.md | ||
elasticsearch-service.md | ||
enhanced-embeddables-plugin.md | ||
external-plugin-development.md | ||
external-plugin-functional-tests.md | ||
external-plugin-localization.md | ||
http-service.md | ||
index.md | ||
interpreting-ci-failures.md | ||
kibana-architecture.md | ||
kibana-dashboard-plugin.md | ||
kibana-debugging.md | ||
kibana-expressions-plugin.md | ||
kibana-issue-reporting.md | ||
kibana-linting.md | ||
kibana-navigation.md | ||
kibana-platform-api.md | ||
kibana-platform-plugin-api.md | ||
legacy-url-aliases.md | ||
logging-config-changes.md | ||
logging-service.md | ||
monorepo-packages.md | ||
patterns.md | ||
plugin-list.md | ||
plugin-performance.md | ||
plugin-tooling.md | ||
pr-review.md | ||
reporting-integration.md | ||
running-elasticsearch.md | ||
running-kibana-advanced.md | ||
sample-data.md | ||
saved-objects-service.md | ||
security-best-practices.md | ||
sharing-saved-objects.md | ||
stability.md | ||
testing-kibana-plugin.md | ||
toc.yml | ||
translations-plugin.md | ||
typescript.md | ||
ui-settings-service.md | ||
uiactions-plugin.md | ||
upgrading-nodejs.md |