Skip to content

Conversation

@erikjv
Copy link
Contributor

@erikjv erikjv commented Oct 10, 2025

No description provided.

@update-docs
Copy link

update-docs bot commented Oct 10, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@erikjv
Copy link
Contributor Author

erikjv commented Oct 10, 2025

For review: please check that the logic of uploadConflictFiles == false and the subsequent excludeConflictFiles == true is done correctly everywhere.

@erikjv erikjv force-pushed the work/remove-upload-conflict-files branch from 4afaf62 to f74780d Compare October 17, 2025 14:17
QVERIFY(!fakeFolder.syncJournal().conflictRecord("A/a2").isValid());
}

// Same test, but with uploadConflictFiles == false
Copy link
Member

Choose a reason for hiding this comment

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

comment no longer reasonable


bool Capabilities::uploadConflictFiles() const
{
static auto envIsSet = !qEnvironmentVariableIsEmpty("OWNCLOUD_UPLOAD_CONFLICT_FILES");
Copy link
Member

Choose a reason for hiding this comment

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

Is this documentation relevant? Please check with @mmattel or search in the docs repos - THX

Copy link
Contributor Author

@erikjv erikjv Oct 20, 2025

Choose a reason for hiding this comment

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

It is mentioned in the docs: https://doc.owncloud.com/desktop/6.0/conflicts.html#force-uploading-conflicted-files

Do we still drop this "unused" capability/feature?

const bool isConflict = _item->instruction() == CSYNC_INSTRUCTION_CONFLICT && QFileInfo(fsPath).isDir();
if (isConflict) {
QString error;
if (!propagator()->createConflict(_item, _associatedComposite, &error)) {
Copy link
Member

Choose a reason for hiding this comment

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

unless I miss anything - _associatedComposite can be removed including the setter and any caller ...

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.

3 participants