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

Bugfix/65023 #458

Merged
merged 6 commits into from
Aug 2, 2024
Merged

Bugfix/65023 #458

merged 6 commits into from
Aug 2, 2024

Conversation

pavelbannov
Copy link
Member

No description provided.

This commit improves the conflict resolution logic when moving or copying files and folders. Instead of checking for conflicts against the ProviderEntry field only, it now also checks the FileConflictResolveType. This change helps to better handle occurrences of duplicate files or folders and to skip certain items as required by the conflict resolution type. Additionally, an empty folders check is included in FolderDao to avoid unnecessary operations.
Two member variables, FileEntryType, were added to two models: FileDto and FolderDto. This type designation simplifies and clarifies the distinction between file and folder entries within these data transfer objects. Additionally, an abstract FileEntryType was added to the FileEntryDto class.
The code previously assigned an empty string to the result on conflict. Now, it correctly assigns the folder ID to ensure proper handling and consistency. This change corrects a logical error that could cause issues in folder management.
Revised the conflict handling to simplify the logic by removing unnecessary checks for the Skip resolution type. The condition now specifically checks for the Overwrite type when processing folders. This change streamlines the code and increases readability.
# Conflicts:
#	products/ASC.Files/Core/Services/WCFService/FileOperations/FileMoveCopyOperation.cs
# Conflicts:
#	products/ASC.Files/Core/Services/WCFService/FileOperations/FileMoveCopyOperation.cs
@AlexeySafronov AlexeySafronov merged commit f9155cd into hotfix/v2.6.1 Aug 2, 2024
3 checks passed
@AlexeySafronov AlexeySafronov deleted the bugfix/65023 branch August 2, 2024 13:08
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