m0nq / cloud-people

https://cloud-people.vercel.app
0 stars 0 forks source link

Prevent User from Deleting an Edge from a Node #83

Open m0nq opened 5 days ago

m0nq commented 5 days ago

In our current web application, users have the ability to create, modify, and delete edges between nodes. However, there is a requirement to prevent users from deleting an edge once it has been established between two nodes. This feature is critical to maintaining the integrity of the node relationships and ensuring that data dependencies are not inadvertently disrupted.

Acceptance Criteria:

  1. UI/UX Changes:
    1. The “Delete Edge” option should be removed or disabled in the user interface for all edges between nodes.
    2. If applicable, provide a tooltip or message explaining why the delete option is unavailable.
  2. Backend Validation:
    1. Implement server-side validation to ensure that any API requests attempting to delete an edge are denied.
    2. Return an appropriate error message if such a request is made.
  3. Testing:
    1. Ensure thorough testing of both UI and backend changes.
    2. Include unit tests and integration tests to verify that edges cannot be deleted under any circumstances.
  4. Documentation:
    1. Update user documentation and help guides to reflect this change in functionality.
    2. Notify users through release notes about this update.

Rationale:

Preventing the deletion of edges is essential to maintaining the structural integrity of our application’s data model. This change will help avoid potential data inconsistencies and ensure that relationships between nodes remain intact.

Estimated Effort: 3 days

linear[bot] commented 5 days ago

DEV-86 Prevent User from Deleting an Edge from a Node