Skip to content

Include saved uploads in partial sync #10200

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

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Conversation

TheOneRing
Copy link
Contributor

No description provided.

@TheOneRing
Copy link
Contributor Author

The unit test was implemented in #10199

@TheOneRing TheOneRing requested a review from a team October 19, 2022 08:52
@TheOneRing TheOneRing force-pushed the work/fix_testFinalMoveLocked branch from 9b5192a to cad304a Compare October 19, 2022 09:38
@@ -1407,31 +1407,63 @@ SyncJournalDb::UploadInfo SyncJournalDb::getUploadInfo(const QString &file)
{
QMutexLocker locker(&_mutex);


if (!checkConnect()) {
return {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we log this case? It looks like this case should not occur really.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The db code already logs.
I also assume we should remove 90% of the checkConnect calls the db is supposed to be opened at this point...
The checkConnect is also the function that checked for the existance of the db file before all our sql calls.

@TheOneRing TheOneRing requested a review from fmoc October 19, 2022 09:56
Fixes: owncloud/enterprise#5382
@TheOneRing TheOneRing force-pushed the work/fix_testFinalMoveLocked branch from 55cfe99 to 3226f96 Compare October 19, 2022 10:13
@TheOneRing TheOneRing merged commit be3fa68 into master Oct 19, 2022
@TheOneRing TheOneRing deleted the work/fix_testFinalMoveLocked branch October 19, 2022 10:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

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.

2 participants