Skip to content

Mirror ReservedPackage entities into SQL. - #9638

Merged
isoos merged 2 commits into
dart-lang:mainfrom
isoos:reserved-package
Oct 1, 2026
Merged

isoos merged 2 commits into
dart-lang:mainfrom
isoos:reserved-package

Conversation

@isoos

@isoos isoos commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Note: a single-shot migration seems to risk the ability to rollback the release, so opting for the multi-step migration.

@isoos
isoos requested review from jonasfj and sigurdm October 1, 2026 07:39
Future<void> mirrorReservedPackageToSql(ReservedPackage rp) async {
await primaryDatabase.withRetry(
(db) => db.reservedPackages
.upsertValue(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we only insert if it's not already there?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The admin operation may create or update the email list of the entity, we should just use upsert here.

backfillReservedPackagesSqlFromDatastore could use an existence check though, I'll add it.

@isoos
isoos force-pushed the reserved-package branch from 61080e1 to 1742ca5 Compare October 1, 2026 08:41
@isoos
isoos merged commit 3d0762b into dart-lang:main Oct 1, 2026
37 checks passed
@isoos
isoos deleted the reserved-package branch October 1, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants