Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: Add no-op migrator for insights oob migration #39894

Merged
merged 5 commits into from
Aug 4, 2022

Conversation

CristinaBirkel
Copy link
Contributor

Closes https://github.com/sourcegraph/sourcegraph/issues/39106

Description

We weren't registering our oob migration if code insights was disabled. This registers a no-op migrator that will always return 100% complete. This allows customers (without code insights) to upgrade past the point of this migration's deprecation (which will be the next version) without needing manual intervention.

Test plan

I tested this on a single docker deployment and verified that the migration completed to 100%. You could also verify this locally by disabling code insights.

@cla-bot cla-bot bot added the cla-signed label Aug 3, 2022
@CristinaBirkel CristinaBirkel changed the title Insights/oob migration complete insights: Add no-op migrator for insights oob migration Aug 3, 2022
@sourcegraph-bot
Copy link
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 4c2ae85...a239d61.

Notify File(s)
@sourcegraph/code-insights-backend enterprise/internal/insights/insights.go
enterprise/internal/insights/migration/migration_no_op.go

@CristinaBirkel CristinaBirkel requested review from efritz and a team August 3, 2022 18:25
@efritz
Copy link
Contributor

efritz commented Aug 3, 2022

Also closes #38555.

@CristinaBirkel CristinaBirkel merged commit 1596dd2 into main Aug 4, 2022
@CristinaBirkel CristinaBirkel deleted the insights/oob-migration-complete branch August 4, 2022 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

insights: Modify OOB settings migration to be at 100% when it's a no-op
4 participants