Skip to content

Webserver: Deleting a node should remove any reference to that node from the project workbench #8048

@sanderegg

Description

@sanderegg

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. Create a sleeper
  2. Create a filepicker with a file
  3. connect the filepicker to the sleeper
  4. 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

Metadata

Metadata

Labels

bugbuggy, it does not work as expected

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions