Is there an existing issue for this?
Which deploy/s?
No response
Current Behavior
When the frontend deletes a node it calls:
- DELETE /projects/{id}/nodes/{id}
sync
- PATCH /projects/{id}/nodes/{id} the next nodes to remove the linkage
async
If a user for whatever reason refreshes in between we end up with a corrupted project workbench
Expected Behavior
Deleting a node from a project should automatically remove any reference to that node from the project workbench.
Therefore the frontend would only need to call the DELETE node endpoint.
Steps To Reproduce
- Create a sleeper
- Create a filepicker with a file
- connect the filepicker to the sleeper
- delete the filepicker and refresh before the next PATCH call is done by the frontend (have the debugger tools open)
--> the project is corrupted.
Anything else?
No response