Skip to content

Enable File deletion #67

@quinnwai

Description

@quinnwai

Is your feature request related to a problem? Please describe.
As a user, when I run git rm to remove the file from the repo, I should be able to remove the data from CALYPR as well.

Describe the solution you'd like
Ideally, I could do a git rm and then during git push, the file is removed automatically for me (more dev work)

Describe alternatives you've considered

  • At minimum, I should be able to do a git rm, commit, push and then just do a git drs delete separately to sync it up. This is manual and is on the user to maintain server state which seems silly
  • The LFS way right now would be to just do a prune repo where only the files that exist in the repo are kept in indexd for that gen3 project. This also has some pitfalls as a repo to gen3 project mapping is not enforced nor would it necessarily be one-to-one

Additional context

  • during git push, we don't know which files are deleted. LFS only tells us which files need to be uploaded, so we would have to do that calculation at some point (either during pre-commit or during pre-push)
  • there are a couple edge cases here as to whether we delete just the indexd record (DRS record), just the file, or both, eg...
    • indexd records exist for that hash but none of them match the project
    • indexd record in that project exists but there's two
    • indexd record exists for this project AND one other that user doesn't have access to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions