Skip to content

Remove need for UPDATE_VIEW to refetch the status #2340 - #3531

Merged
guruz merged 4 commits into
owncloud:masterfrom
jturcotte:master
Aug 6, 2015
Merged

guruz merged 4 commits into
owncloud:masterfrom
jturcotte:master

Conversation

@jturcotte

Copy link
Copy Markdown
Contributor

No description provided.

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.
@guruz guruz added this to the 2.0 - Multi-account milestone Aug 3, 2015
@danimo

danimo commented Aug 4, 2015

Copy link
Copy Markdown
Contributor

@ogoffart please comment on the items

@guruz

guruz commented Aug 5, 2015

Copy link
Copy Markdown
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?

@jturcotte

Copy link
Copy Markdown
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

@jturcotte

Copy link
Copy Markdown
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
@guruz
guruz merged commit 7985c0d into owncloud:master Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants