Skip to content

insights: OOB migration from settings to codeinsights-db

Administrator requested to merge insights/api/oob-migration into main

Created by: CristinaBirkel

Closes #26533 (closed), #27306 (closed)

This is a the feature branch for the OOB migration from settings to the codeinsights-db.

Tasks:

  • In band migrations
  • Implement Progress function
  • Move the store and tables to primary postgres instead of codeinsights-db
  • Create special case dashboard for user / org / global
  • Better error handling
  • Check transactionality of the migration
  • Duplicate dashboard check
  • Disable 10 minute sync jobs https://github.com/sourcegraph/sourcegraph/pull/27857
  • Test on dogfood and make sure it works with concurrency
  • Test plan for edge cases (like non-globally-unique ids) and verify those
  • Bug found: it's reusing a BE series for a FE series. Double-check that series re-use logic.
  • Log schema errors before skipping them
  • BEFORE MERGE: Verify migration numbers are still correct (for both migration files and OOB migration)
  • BEFORE MERGE: Verify minor version number in OOB migration is still correct

Merge request reports

Loading