Closed JoanVicens closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
3 Code Smells
No Coverage information
6.1% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
When creating a folder and giving it a name right away it was likely to not have been able to create the folder on the remote server leaving the folder desynchronized and not being able to make any action with it.
To solve this problem we create the folder uuid on the client and return it as quickly as possible to be able to handle the action that takes place on that folder.
With a stable connection, I've observed that the creation of the folder finishes before the rename of the folder. In that case, the rename is performed as normal.
If the post to folders is slower the rename can happen before the folder is created, in this case, the rename is stored locally and once the folder is created we check for any renames and perform the appropriate actions.