kibana/docs/extend
Christiane (Tina) Heiligers 35f51dabd7
[9.0] Removed switchToModelVersionAt from SO API definition (#219029) (#219329)
# 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>
2025-04-29 16:27:46 +02:00
..
images [9.0] [docs] Miscellaneous docs clean up (#215260) (#215860) 2025-03-25 13:26:30 +00:00
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 [Docs] Add link to dependencies page - 9.0 (#214668) 2025-03-17 18:04:39 +00:00
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 [Docs] Add link to dependencies page - 9.0 (#214668) 2025-03-17 18:04:39 +00:00
interpreting-ci-failures.md [9.0] [docs] Fix image paths for docs-assembler (#218344) (#218359) 2025-04-15 22:33:11 +00:00
kibana-architecture.md
kibana-dashboard-plugin.md
kibana-debugging.md [9.0] [docs] Fix image paths for docs-assembler (#218344) (#218359) 2025-04-15 22:33:11 +00:00
kibana-expressions-plugin.md [9.0] [docs] Fix image paths for docs-assembler (#218344) (#218359) 2025-04-15 22:33:11 +00:00
kibana-issue-reporting.md
kibana-linting.md
kibana-navigation.md [9.0] [docs] Miscellaneous docs clean up (#215260) (#215860) 2025-03-25 13:26:30 +00:00
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 [9.0] SKA: Relocate ai assistant management (#218129) (#218555) 2025-04-18 16:09:54 +02:00
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 [9.0] Removed switchToModelVersionAt from SO API definition (#219029) (#219329) 2025-04-29 16:27:46 +02:00
security-best-practices.md
sharing-saved-objects.md [9.0] [docs] Fix image paths for docs-assembler (#218344) (#218359) 2025-04-15 22:33:11 +00:00
stability.md
testing-kibana-plugin.md
toc.yml
translations-plugin.md
typescript.md
ui-settings-service.md
uiactions-plugin.md [9.0] [docs] Remove jsx from typescript code blocks (#213955) (#213961) 2025-03-11 16:18:15 +00:00
upgrading-nodejs.md