Skip to content

Canonical ID Schema Migration #2686

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

Merged

Conversation

schmidt-sebastian
Copy link
Contributor

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

txn: SimpleDbTransaction
): PersistencePromise<void> {
const targetStore = txn.store<DbTargetKey, DbTarget>(DbTarget.store);
return targetStore.iterate((key, value) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

The variable names are somewhat confusing. Consider renaming:

  • value => originalDbTarget
  • originalTargetData leave alone
  • updatedTargetData => updatedDbTarget

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good improvement. Done.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Feb 28, 2020
@schmidt-sebastian schmidt-sebastian merged commit 4083821 into mrschmidt/rewritefieldvalue Mar 4, 2020
@firebase firebase locked and limited conversation to collaborators Apr 4, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/rewritefieldvalue-7 branch April 6, 2020 19:26
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.

2 participants