Skip to content

[api] User endpoint for deleting a file from their inbox #2428

@viklund

Description

@viklund

Please describe the feature

As an uploader,
I want to be able to delete files from my inbox
so that I can correct my misstakes.

  • Should send a message to EGA (in case of FEGA).
  • Should update file event table.
  • Should only go through in case a file is either uploaded or disabled.
  • Should only go through in case a file is uploaded by the same user.
  • Needs a new file event "removed".
  • Should use the file id for deletion, file id can be found by using the listing API functionality.
  • Update the admin api for deletion to set the file status to removed instead of disabled.

Acceptance criteria

  • An API endpoint that can be called with a user to delete a file.
  • Admin API updated to set filestatus to "removed" insetad of "disabled" when deleting a file.
  • Tests verifying the changes are added.

Additional context

Estimation of size

small/medium/big

Estimation of priority

low/medium/high

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions