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

Properly handle all fatal errors during edit locally setup procedure #5583

Merged
merged 4 commits into from
Apr 23, 2023

Conversation

claucambra
Copy link
Collaborator

This should fix situations where the edit locally loading dialog is presented but never destroyed when an error is met during setup

@claucambra claucambra self-assigned this Apr 7, 2023
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 my question

src/gui/editlocallymanager.cpp Show resolved Hide resolved
src/gui/editlocallyjob.cpp Show resolved Hide resolved
@claucambra claucambra requested a review from mgallien April 12, 2023 09:09
@mgallien mgallien force-pushed the bugfix/edit-locally-error-messages branch from b65040d to 1c720d8 Compare April 13, 2023 09:46
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #5583 (cec1171) into master (38ae92b) will decrease coverage by 0.04%.
The diff coverage is 35.00%.

❗ Current head cec1171 differs from pull request most recent head 348c253. Consider uploading reports for the commit 348c253 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5583      +/-   ##
==========================================
- Coverage   59.28%   59.25%   -0.04%     
==========================================
  Files         143      143              
  Lines       18445    18453       +8     
==========================================
- Hits        10936    10935       -1     
- Misses       7509     7518       +9     
Impacted Files Coverage Δ
src/libsync/logger.h 61.53% <ø> (ø)
src/libsync/logger.cpp 28.57% <35.00%> (+0.41%) ⬆️

... and 2 files with indirect coverage changes

@mgallien mgallien force-pushed the bugfix/edit-locally-error-messages branch 2 times, most recently from 442e682 to cec1171 Compare April 21, 2023 10:19
@mgallien
Copy link
Collaborator

@claucambra can you check why a test seems to fail every time ?

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-5583-cec1171add9e9d871d659ba7aca53f72d5cc1101-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.

@claucambra
Copy link
Collaborator Author

@claucambra can you check why a test seems to fail every time ?

It's an end-to-end test unrelated to the changes in this PR

…art it within the job

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ng edit locally

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ors are met during edit locally

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@claucambra claucambra force-pushed the bugfix/edit-locally-error-messages branch from cec1171 to 348c253 Compare April 23, 2023 14:48
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@claucambra claucambra merged commit 39c605e into master Apr 23, 2023
@claucambra claucambra deleted the bugfix/edit-locally-error-messages branch April 23, 2023 15:41
@claucambra
Copy link
Collaborator Author

/backport to stable-3.8

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