Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.9] [Fleet] set typeMigrationVersion instead of migrationVersion (#…
…164712) (#164728) # Backport This will backport the following commits from `main` to `8.9`: - [[Fleet] set typeMigrationVersion instead of migrationVersion (#164712)](#164712) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-24T14:37:58Z","message":"[Fleet] set typeMigrationVersion instead of migrationVersion (#164712)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/164690\r\n\r\n`migrationVersion` was removed from es mapping in 8.8:\r\nhttps://github.com//issues/154246\r\nReplacing it with `typeMigrationVersion` using the same logic as in\r\nkibana core:\r\n\r\nhttps://github.com/elastic/kibana/blob/ba843882a7bb35aa3062efd6562ed85d5db157f4/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts#L17\r\n\r\n\r\nTo verify:\r\n- add Kubernetes integration to a new policy\r\n- verify that it is added successfully\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"0146dc87e8db9ed085295ad63d5863f2964d4eb6","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.10.0","v8.11.0","v8.9.2"],"number":164712,"url":"https://github.com/elastic/kibana/pull/164712","mergeCommit":{"message":"[Fleet] set typeMigrationVersion instead of migrationVersion (#164712)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/164690\r\n\r\n`migrationVersion` was removed from es mapping in 8.8:\r\nhttps://github.com//issues/154246\r\nReplacing it with `typeMigrationVersion` using the same logic as in\r\nkibana core:\r\n\r\nhttps://github.com/elastic/kibana/blob/ba843882a7bb35aa3062efd6562ed85d5db157f4/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts#L17\r\n\r\n\r\nTo verify:\r\n- add Kubernetes integration to a new policy\r\n- verify that it is added successfully\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"0146dc87e8db9ed085295ad63d5863f2964d4eb6"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164712","number":164712,"mergeCommit":{"message":"[Fleet] set typeMigrationVersion instead of migrationVersion (#164712)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/164690\r\n\r\n`migrationVersion` was removed from es mapping in 8.8:\r\nhttps://github.com//issues/154246\r\nReplacing it with `typeMigrationVersion` using the same logic as in\r\nkibana core:\r\n\r\nhttps://github.com/elastic/kibana/blob/ba843882a7bb35aa3062efd6562ed85d5db157f4/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/document_migrator/migrations/transform_migration_version.ts#L17\r\n\r\n\r\nTo verify:\r\n- add Kubernetes integration to a new policy\r\n- verify that it is added successfully\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"0146dc87e8db9ed085295ad63d5863f2964d4eb6"}},{"branch":"8.9","label":"v8.9.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Julia Bardi <[email protected]>
- Loading branch information