-
Notifications
You must be signed in to change notification settings - Fork 667
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
[Overlays] Client folder error status not shown in higher-level icon status #3634
Comments
@guruz are you working on this now for 2.0, or does it slide to 2.0.1? |
I haven't investigated it yet but unless this is a regression from 1.8 (it's not, is it?) then we shouldn't put pressure on 2.0.0. If this requires bigger changes it might have to go in 2.1. See also #3171 for a glimpse of how error statuses aresn't preserved as long as they should. The moment that a file ends up in the black list, its status becomes invisible to the user. My knowledge of that area isn't quite good though, @ogoffart could prove me wrong if I am. |
Another question is: Is it correct to propagate anything else than the SYNC status to parent folders? If I have the structure: And that C has an ignored or error status, should A also be marked as ignored/error? A isn't ignored completely, A isn't completely in error either. For SYNC, however we can say that "A isn't up-to-date", implied by C not being up-to-date. I agree that there should be a way to see the error more easily than by inspecting the activity monitor, but I'm not sure if the status of parent directories is the right place to keep that information until the user decides to fix the situation (if he even knows how to fix it). It might handicap his ability to quickly judge if other files are up-to-date. Let me know how you see it. |
I thought we said that A should have a yellow, saying that it was non fatal, but there were problems in the directory below it. If the entire directory in C failed, C is red, otherwise if it is a partial fail C is yellow too, and that gets propagated up. I have to find the selective sync notes as it outlines it. |
Found it: |
Those requirements look good, with the addition of the "bubbling up with yellow" to parent folders that have red somewhere below but not all red, as @MTRichards has commented. |
Moved to 2.1. This is not exactly how it is implemented today and as a result a bigger change. |
This should be done together with #3171 |
Related #4026 |
…t folders #3634 This also remove all smartness from the SocketApi about the status of a file and solely use info from the current and last sync. This simplifies the logic a lot and prevents any discrepancy between the status shown in the activity log and the one displayed on the overlay icon of a file. The main benefit of the additional simplicity is that we are able to push all new status of a file reliably (including warnings for parent folders) to properly update the icon on overlay implementations that don't allow us invalidating the status cache, like on OS X. Both errors and warning from the last sync are now kept in a set, which is used to also affect parent folders of an error. To make sure that errors don't become warning icons on a second sync, SyncFileItem::_hasBlacklistEntry is also interpreted as an error. This also renames StatusIgnore to StatusWarning to match this semantic. SyncEngine::aboutToPropagate is used in favor of SyncEngine::syncItemDiscovered since the latter is emitted before file permission warnings are set on the SyncFileItem. SyncEngine::finished is not used since we have all the needed information in SyncEngine::itemCompleted.
@phil-davis Can re-test this with a recent nightly as soon as the overlay binaries are rebuilt (#4631) |
@phil-davis Would you re-test this? :) |
@phil-davis Still alive? :-) |
Hi hi: @guruz I have made some test about this Issue using basically the same steps that @phil-davis put: Steps executed
Results: Folder2 is shown with yellow icon and Activity log says: Ignored because of the "choose what to sync" blacklist, but Folder1 remains with a green icon.So it seems that sync error are not getting propagated up . MacOS Unable to check it on windows due to https://github.com/owncloud/client/issues/4701 Regards |
Warning don't get propagated up, only errors. Else the root folder for example would never be green, there is always an ignored file somewhere in the tree (for example the .csync_journal db) and the user most likely won't want to change this. Errors on the other hand will usually need to be actioned by the user. |
Maybe the "ignored because of the choose what to sync blacklist" message should be an error though, it's not a normal use case. |
@mcastroSG BTW, the overlays are very OS-sensitive. So in this case you should test Windows (where @phil-davis is on). |
Blocked due to #4737 |
Hi hi:
OSX: Client OS: OS X El capitán 10.11.4 OSW: Client OS: W81 Client OS: Ubuntu 14.04 LTE |
Expected behaviour
If a folder has a problem syncing from client to server then the problem status will be shown in the icons of parent folders and in the overall sync status icon in the icon box.
Actual behaviour
If a folder has a problem syncing from client to server it (correctly) shows a little red "x" in the folder icon.
But any folders above it show green,
The overall client status icon shows green.
If the problem folder is several folders down in the folder tree then the user is unlikely to notice it and thus will not know to investigate.
It would be nice to show some non-green status for the folders above and the overall status icon.
Steps to reproduce
FolderA is shown with red "x" icon - good.
Activity log says: Ignored because of the "choose what to sync" blacklist
That is also reasonable, because there is already FolderA on the server with some (presumably different) content, and it is not being synced to this client.
But the overall sync status is green.
There is the same sort of behaviour when FolderA is inside some other folder/s. The higher level folders all show green status.
Server configuration
ownCloud version: 8.0
Client configuration
Client version: Version 2.0.0-nightly20150817 (build 5403)
Operating system: Windows 10
OS language: English (US)
Installation path of client: default
The text was updated successfully, but these errors were encountered: