-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[PS-2120] Forcing vault to refresh when the vault is purged or new items are imported #4380
[PS-2120] Forcing vault to refresh when the vault is purged or new items are imported #4380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is the right way to go about this.
The SyncService (and most services) are singletons and setting this at the service level will cause all syncs to be forced for the entire application.
this needs to be solved on an interaction-by-interaction basis. Why is this.syncService.fullSync(true)
not sufficient?
After the next successful sync the variable was set to false again, so the FullSync would be forced only on the next call. The idea is after the purge or import is completed, the next call to FullSync should always run, because we know there are changes. PS: After some tests calling the |
this is the route we want to go forward with on PS-2120 |
Analog to #4380 we also need to add a full sync to the import.command, so that when a user calls `bw list items` those are populated.
Analog to #4380 we also need to add a full sync to the import.command, so that when a user calls `bw list items` those are populated.
Type of change
Objective
There are some cases that the vault is not synced after a successful call to purge or import. Added a flag to force it.
Code changes
FullSync
method until the end.ShouldForceSync
flag to true, after a successful call to import or purge.Before you submit