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

Improve config upgrade warning dialog #5384

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

camilasan
Copy link
Member

  • Improve the code.
  • Fix the check for the file name.
  • Do not always display the warning about the backup of config files of older version.

@mgallien
Copy link
Collaborator

mgallien commented Feb 1, 2023

/backport to stable-3.7

@codecov
Copy link

codecov bot commented Feb 1, 2023

Codecov Report

Merging #5384 (72fe5f6) into master (fa90a87) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5384   +/-   ##
=======================================
  Coverage   57.99%   58.00%           
=======================================
  Files         141      141           
  Lines       18110    18113    +3     
=======================================
+ Hits        10503    10506    +3     
  Misses       7607     7607           
Impacted Files Coverage Δ
src/libsync/configfile.cpp 26.85% <0.00%> (-0.14%) ⬇️
src/libsync/discovery.cpp 86.21% <0.00%> (+0.28%) ⬆️

Copy link
Collaborator

@claucambra claucambra left a comment

Choose a reason for hiding this comment

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

Seems fine, small comment :)

src/libsync/configfile.cpp Outdated Show resolved Hide resolved
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.

see comment from @claucambra

Use the setting showConfigBackupWarning to change the default value.

Signed-off-by: Camila <[email protected]>
@camilasan camilasan force-pushed the bugfix/improveConfigUpgradeWarningDialog branch from 6954827 to 72fe5f6 Compare February 1, 2023 18:01
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.

thanks 💙

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5384-72fe5f643cfa19499a3647901ceacaaff2b35471-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.

@camilasan camilasan merged commit efa266f into master Feb 1, 2023
@camilasan camilasan deleted the bugfix/improveConfigUpgradeWarningDialog branch February 1, 2023 21:02
@mgallien mgallien added this to the 3.8.0 milestone Mar 21, 2023
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.

4 participants