Repository navigation
Remove need for UPDATE_VIEW to refetch the status #2340 - #3531
Merged
Merged
Conversation
The signal is emitted in this case if the instruction is NONE but in the only ultimately connected slot to this signal, SocketApi::slotSyncItemDiscovered, we return early according to the same condition. The emission of the same signal at the end of treewalkFile remains and take care of the normal cases.
To allow forwarding all OK states of sync jobs to the socket API we need to make sure that the vector doesn't contain unneeded items. This initially was intended to force updating the metadata for parent folders, but since then the should_update_metadata flag check was added both here and in PropagateDirectory::finalize where the metadata is actually updated for parent folders. We can safely remove the inclusion of all remote directory items.
This fixes a few issues with the new FinderSync integration on OSX which can't easily clear its status cache when receiving an UPDATE_VIEW message except by unregistering the folder, but which causes flickering. This fix should also make the regeneration of the cache unnecessary on other platforms through possibly expensive RETRIEVE_FILE_STATUS commands.
Now that the client is pushing all changes of state, we don't need to track the requested URLs anymore and risk that the way that we reseted that list could leave a few entries in Finder's cache outdated. We can remove the same code from other platforms in a later release, a bit earlier than a week before beta1.
Contributor
|
@ogoffart please comment on the items |
Contributor
|
@ogoffart Probably best to move into the beta to get most testing? @jturcotte It would be good to mention the improved/fixed issue numbers in the commits (if there is issues..) This would help the Eagle-issue? |
Contributor
Author
|
@guruz This is currently only the case for OS X 10.10, others are still doing the refetching but possibly unnecessarily. We can change that for 2.1, but the eagle-issue should already be fixed with the status cache cleaning patch that went into 1.8.x |
Contributor
Author
|
Anybody interested in touching that soft "Merge pull request" button? |
guruz
added a commit
that referenced
this pull request
Aug 6, 2015
Remove need for UPDATE_VIEW to refetch the status #2340
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.