Infomaniak / desktop-kDrive

:computer: Desktop Syncing Client for kDrive
GNU General Public License v3.0
29 stars 5 forks source link

KDESKTOP-954-Error-in-updateNodeWithDb #176

Closed ClementKunz closed 4 months ago

ClementKunz commented 4 months ago

If a tree structure is deleted and recreated with the same names (ex: folder AAA containing the following structure A/AA/AAA/test.txt is deleted and the same structure is re-created with different IDs), then the UpdateTreeWorkers will merge to deleted folder nodes and the newly created folder nodes. This PR aims to differanciate the node newly created from the ones deleted. Since a node on a deleted branch will have only a DELETE event, we do not insert a node with CREATE event (or any event other that DELETE) as a child of a node with a DELETE event.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud