-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Show only media folders that exist #3587
Conversation
Signed-off-by: tobiasKaminsky <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #3587 +/- ##
===========================================
- Coverage 6.05% 6.05% -0.01%
Complexity 1 1
===========================================
Files 313 313
Lines 30761 30773 +12
Branches 4424 4427 +3
===========================================
- Hits 1863 1862 -1
- Misses 28621 28633 +12
- Partials 277 278 +1
|
@tobiasKaminsky would have to test this but I always thought that our notification trigger for a newly found folder will also write a db entry into our synced folders table which will then lead to the folder still being shown even after the deletion! So I think this fix won't help but I might be mistaken... :/ |
As this is persisted in database, this also survives restarts, @AndyScherzinger |
I guess to be discussed with @nextcloud/designers. From a technical point of view it definitely needs to be removed for several reasons: It clutters the ist over time since it'll have more and more dead/non-existing folders over time so they shouldn't be shown when not present (anymore). Talking about deleting the entries complpetely: you need to do a file check per db entries if still present on the file system every time you load this list and that is procecssing time not well spent and will also grow over time. So to me it leaves us with the decision on how to handle such entries for SD cards where you still can have the same scenario: folders that don't exist anymore. So even there I am fine with deleting such db entries. Entries that shouldn't be deleted (right away) are the one that are active (even though the folder doesn't ecist anymore). The would then be deleted after de-activation and reentrering the auto upload screen at a later point in time. Just my 2 cents :) |
So to summarize:
even if the local folder is currently not available/deleted on purpose. |
Signed-off-by: tobiasKaminsky <[email protected]>
Added :) |
Correct while I'd say we still have an edge case :/ A folder with images that get created and deleted regularly will now work fine from a auto upload screen perspective but will now lead to a new folder notification in case the auto upload screen has been opened in between. |
As discussed on IRC, we currently keep this approach, but if problems arises, we will use the new approach suggested by @AndyScherzinger |
Lint
FindBugs (new)
FindBugs (master)
|
Fix #3555
Signed-off-by: tobiasKaminsky [email protected]