Closed abdnh closed 6 months ago
The author of this PR, abdnh, is not an activated member of this organization on Codecov. Please activate this user on Codecov to display this PR comment. Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations. Please don't hesitate to email us at support@codecov.io with any questions.
But they won't be told to do that in the two other situations that cause a schema change:
I pushed some changes to handle this. What do you think?
@abdnh The changes look good, but I think we still need some more changes to avoid data loss.
I don't think we should skip the full sync dialog in these situations:
Unless we do these two things before:
We are now doing both of these safety measures for deck installations, but not for uninstalling a deck or for adjusting note types of a deck.
I have a suggestion for this PR:
schema_to_do_full_upload_for_once
in on_new_deck_subscriptions_done
(if the schema is different at this point than at the beginning of the sync)In other PRs, we could make these further changes:
What do you think?
We are now doing both of these safety measures for deck installations, but not for uninstalling a deck or for adjusting note types of a deck.
Good point! I forgot about that.
This pull request was deployed and Sentry observed the following issues:
anki.collection in save
View Issue1322529746.gui.operations.ankihub_sync in _uplo...
View Issueanki._backend in _run_command
View Issueanki._backend in _db_command
View Issue1322529746.ankihub_client.ankihub_client in _se...
View IssueDid you find this useful? React with a 👍 or 👎
Related issues
https://ankihub.atlassian.net/browse/BUILD-299
Proposed changes
This PR makes it so that the AnkiWeb full sync confirmation dialog is skipped (by doing a full upload) when it's triggered by an AnkiHub sync. This is done as follows:
How to reproduce