Open MalinAhlberg opened 3 weeks ago
Great comments @kostas-kou ! Fixed most of them in 92903a6, ~but left this one for others to see~ <- solved during stand-up.
@kostas-kou and @pahatz, thanks for your reviews! I have fixed the weird comment, rebased on main and also rebased to get rid of the fixup-commits. Only 3ac7e5e is new, the rest is the same as when you reviewed.
...and added 8a745c4 for the rbac
Related issue(s) and PR(s)
This PR closes #1134 .
Description This PR adds the delete file functionality to the
api
component. Specifically, it deletes the file from the inbox and it adds a new file log event, setting the file status todisabled
.Also, it adds the
fileID
to thelist
functionality of theapi
, since that field is needed in order to delete a file:How to test
make build-all
thenPR_NUMBER=$(date +%F) docker compose -f .github/integration/sda-s3-integration.yml run integration_test
. List the files (eg withhttp://localhost:8090/users/test@dummy.org/files
) and make sure files in the inbox can be deleted, and that archived files can not be deleted.