Skip to content
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

Bugfix nextcloudcmd when syncing results in deleting all files #6773

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

camilasan
Copy link
Member

@camilasan camilasan commented May 21, 2024

@camilasan camilasan changed the title Bugfix cmd sync Bugfix nextcloudcmd May 21, 2024
@camilasan camilasan changed the title Bugfix nextcloudcmd Bugfix nextcloudcmd when syncing results in deleting all files Jun 4, 2024
@camilasan camilasan force-pushed the bugfix/cmd-sync branch 2 times, most recently from 064ccf4 to 9d53bf8 Compare June 4, 2024 18:46
@camilasan camilasan marked this pull request as ready for review June 4, 2024 18:46
Copy link
Member

@nimishavijay nimishavijay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nice! Very concise and clear as well!
I would suggest using "Proceed to remove all files" instead :)

Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the code as it is without having ever manually modified the setting promptDeleteAllFiles
so default value (false) kicks in and we get no popup in nextcloud graphical full sync client and cmdlightweight client is not getting stuck
if you change the value to true I get the improved popup in the graphical client but the command line one will get stuck again

src/libsync/syncengine.cpp Outdated Show resolved Hide resolved
src/libsync/syncengine.cpp Show resolved Hide resolved
@camilasan
Copy link
Member Author

I tested the code as it is without having ever manually modified the setting promptDeleteAllFiles
so default value (false) kicks in and we get no popup in nextcloud graphical full sync client and cmdlightweight client is not getting stuck
if you change the value to true I get the improved popup in the graphical client but the command line one will get stuck again

I know and I tried to decouple the 2 things (the sync trigger from cmd and the notification when using the UI) but I couldn't think of a good of doing that.

…ing signal to display warning.

The signal is not connected to any slot when running nextcloudcmd.
The callback to finish the sync was never being called because the check for the config was done in the slot,
which was never called.

Signed-off-by: Camila Ayres <hello@camilasan.com>
Signed-off-by: Camila Ayres <hello@camilasan.com>
Signed-off-by: Camila Ayres <hello@camilasan.com>
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-6773-19ae6491cde1f676e1422101fe310645fe790bcd-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

Copy link

sonarcloud bot commented Jun 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
E Maintainability Rating on New Code (required ≥ A)
30 New Code Smells (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants