Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Conversation

@achingbrain
Copy link
Member

Changes the onProgress option to receive feedback on how far each
migration has progressed with a percent complete indicator and a
message to show the user.

If an onProgress option is passed, migrations will get a bit slower
as we need to calculate the total volume of work before starting a
migration in order to work out the percent complete.

Also removes datastores from runtime dependencies as these should only
ever be passed in as config and consolidates the various ways of
creating a datastore from the config.

Fixes #32

BREAKING CHANGES:

  • The signature of the onProgress callback has changed

Changes the `onProgress` option to receive feedback on how far each
migration has progressed with a percent complete indicator and a
message to show the user.

If an `onProgress` option is passed, migrations will get a bit slower
as we need to calculate the total volume of work before starting a
migration in order to work out the percent complete.

Also removes datastores from runtime dependencies as these should only
ever be passed in as config.

Fixes #32

BREAKING CHANGES:

- The signature of the `onProgress` callback has changed
@achingbrain achingbrain changed the title feat: report migration status feat: report migration progress Aug 15, 2020
@achingbrain achingbrain merged commit 051c0a4 into master Aug 15, 2020
@achingbrain achingbrain deleted the feat/report-migration-progress branch August 15, 2020 11:35
@achingbrain
Copy link
Member Author

I've merged this to unblock other work, please leave comments anyway and I can address feedback in a follow up PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration progress

2 participants