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

feature: removing incoming links to the file on delete #17

Open
nvdk opened this issue Nov 9, 2023 · 0 comments
Open

feature: removing incoming links to the file on delete #17

nvdk opened this issue Nov 9, 2023 · 0 comments

Comments

@nvdk
Copy link
Member

nvdk commented Nov 9, 2023

Context
Often files are related to other resources, which are managed through mu-cl-resources.
In this case the file is created via the file-service and linked to another resource via mu-cl-resources.
The trouble arises when the file is removed, ideally any links to the file should also be removed. Currently this requires the frontend to be aware of all possible links and removing those via mu-cl-resources and only after removing the file.
This is different how mu-cl-resources handles the delete of a resource: it also removes all links to the deleted resource. This is inline with the default expectations of ember-data.

Possible solutions

  1. Updating the file service so that it also removes any references to the file in the triplestore
  2. Having support for delta's in the file service and doing the delete (of the metadata) via mu-cl-resource, when the file service receives the deletion it removes the file from disk.
@nvdk nvdk changed the title removing incoming links to the file feature: removing incoming links to the file on delete Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant