-
Notifications
You must be signed in to change notification settings - Fork 805
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
Feature/sync with case clash names #5232
Conversation
40fd992
to
0c4d898
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small nitpicks, please clean up history when done :)
The sync engine test has crashed in the Windows pipeline, unsure if this is related to the changes |
0351873
to
fe7e992
Compare
f27a5b1
to
38daad6
Compare
9640e87
to
42884f5
Compare
42884f5
to
6939441
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5232 +/- ##
==========================================
+ Coverage 58.06% 58.31% +0.24%
==========================================
Files 139 141 +2
Lines 17710 17990 +280
==========================================
+ Hits 10283 10490 +207
- Misses 7427 7500 +73
|
db8928d
to
f4f2987
Compare
f333549
to
5321f9a
Compare
@matthieugallien Could you add a short video of how this feature works? |
3172ff1
to
4d60f75
Compare
@@ -913,6 +913,63 @@ bool OwncloudPropagator::createConflict(const SyncFileItemPtr &item, | |||
return true; | |||
} | |||
|
|||
OCC::Optional<QString> OwncloudPropagator::createCaseClashConflict(const SyncFileItemPtr &item, const QString &temporaryDownloadedFile) | |||
{ | |||
auto filename = QString{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the auto is particularly helpful here
auto filename = QString{}; | |
QString filename; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree
I do not see a good reason not to use it
I have always find that almost always auto is a good rule
we should have auto everywhere unless there is a reason it cannot be used
status = SyncFileItem::NormalError; | ||
} else { | ||
status = SyncFileItem::FileIgnored; | ||
ASSERT(_item->_instruction == CSYNC_INSTRUCTION_IGNORE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a Q_ASSERT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ASSERT
macro will also print a message in release mode if it fails
4d60f75
to
7cebb6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge commit probably needs to be removed before merging this PR, otherwise looks good
introduce a new type of conflict for case clash filename conflicts add proper handling including a new utility class to solve them and a new dialog for the user to pick a fix Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ution dialog Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
94605d2
to
fbb0a33
Compare
done |
AppImage file: nextcloud-PR-5232-fbb0a33eb702f7518ceb3fd79699488843ce3c05-x86_64.AppImage |
SonarCloud Quality Gate failed. |
#5099