Skip to content

db - cascade delete ops to relations; remove dataset hard delete

ryanlong requested to merge delete_cascade into main

Created by: deepakduggirala

Description

Refactored db schema - deletes of an entry of dataset, user, project, etc are cascaded to their associations.

Removed the capability to delete dataset entries from UI / API. The datasets can only be marked as deleted by the operators.

A script is added to remove the datasets by id intended to be of use for the admins.

$ node src/scripts/delete_datasets.js 1 2 3
{ count: 3 }

Related Issue(s)

Closes #30 (closed)

Changes Made

List the main changes made in this PR. Be as specific as possible.

  • Feature added
  • Bug fixed
  • Code refactored
  • Documentation updated
  • Other changes: [describe]

Checklist

Before submitting this PR, please make sure that:

  • Your code passes linting and coding style checks.
  • Documentation has been updated to reflect the changes.
  • You have reviewed your own code and resolved any merge conflicts.
  • You have requested a review from at least one team member.
  • Any relevant issue(s) have been linked to this PR.

Additional Information

Add any other information or context that may be relevant to this PR. This can include potential impacts, known issues, or future work related to this change.

Merge request reports

Loading