Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data coherence should be improved after the deletion of some resources #948

Open
mmo opened this issue Sep 18, 2023 · 0 comments
Open

Data coherence should be improved after the deletion of some resources #948

mmo opened this issue Sep 18, 2023 · 0 comments
Labels
bug Breaks something but is not blocking

Comments

@mmo
Copy link
Collaborator

mmo commented Sep 18, 2023

Bug description:

The deletion of some resources cause some operations to fail, because "dead links" are created in other resources, resulting in data coherence problems. (See "Expected behavior" below for the actual cases.)

Expected behavior:

  • deleted documents should be unlinked from their deposits
  • deleted users should be unlinked from their deposits
  • deleted subdivisions should be unlinked from their users and deposits

Notes:

  • there may be other cases - to be checked
  • in some cases, instead of unlinking resources, it is perhaps better to delete them (ex. documents/deposits)
  • in some cases, instead of unlinking or deleting associated resources, the deletion operation should be forbidden upfront (ex. forbid the deletion of users with pending deposits, or the deletion of subdivisions with attached users or pending deposits)
@mmo mmo added the bug Breaks something but is not blocking label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking
Projects
Status: Inbox
Development

No branches or pull requests

1 participant