-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[saved objects] Remove migrations enableV2
config.
#115655
Conversation
// TODO migrationsV2: remove old migrations algorithm | ||
if (this.soMigrationsConfig.enableV2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to minimize the code that was removed here, but due to the way soMigrationsConfig
is typed, I had to take this out.
86e7d0a
to
15d039b
Compare
This comment has been minimized.
This comment has been minimized.
15d039b
to
86526d4
Compare
The one failure here is a unit test from the I think it just needs to be mocked differently for v2, but hadn't gotten to look more closely at it yet.
|
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kibana-docker LGTM
Pinging @elastic/uptime (Team:uptime) |
I just wanted to double check, is the plan to partially backport this to 7.16? Or are we removing the config altogether? |
Core team is still discussing this. We had originally planned to just merge this for 8.0, but as we have explicitly documented that the config could be removed in a minor and it only existed for debugging purposes, we had a last minute discussion today about possibly backporting to 7.16 as well (to simplify long term support). The config removal ended up being a bit more widespread than initially anticipated, so the rest of the team is going to decide tomorrow morning in EMEA whether we want to try to push this through before the first 7.16 BC is kicked off. If we can't make that happen, we'll stick with 8.0 only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uptime changes LGTM !!
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @lukeelmers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APM changes LGTM
Chatted with @brianseeders -- the buildkite build is passing, but did not update the kibana-ci check on this PR after the test was retried. Ops team will investigate a fix for this, but in the meantime we should be safe to merge. |
💔 Backport failed
To backport manually run: |
# Conflicts: # src/core/server/saved_objects/migrationsv2/integration_tests/migration_from_older_v1.test.ts # src/core/server/saved_objects/migrationsv2/integration_tests/migration_from_same_v1.test.ts
# Conflicts: # src/core/server/saved_objects/migrationsv2/integration_tests/migration_from_older_v1.test.ts # src/core/server/saved_objects/migrationsv2/integration_tests/migration_from_same_v1.test.ts
[skip-ci]
Part of #96396
This marks the
enableV2
migrations config (deprecated in 7.12) as unused. As a result, users won't be able to use v1 migrations from 7.16.Due to the way the SO config types were handled, it requires removing a few pieces of code, however it doesn't remove the full set of v1 migration code as outlined in #96396.