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

Implement endpoint for deleting attachment #97

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

VKTB
Copy link
Collaborator

@VKTB VKTB commented Jan 17, 2025

Description

This PR implement a /attachments/<attachment_id> DELETE endpoint that allows consumers to delete an attachment by its ID. It deletes the attachment metadata from the database and the file object in the object store.

Testing instructions

  • Review code
  • Check Actions build
  • Review changes to test coverage

Agile board tracking

closes #28

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.31%. Comparing base (d51376a) to head (f89f092).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #97      +/-   ##
===========================================
+ Coverage    99.28%   99.31%   +0.03%     
===========================================
  Files           19       19              
  Lines          422      441      +19     
===========================================
+ Hits           419      438      +19     
  Misses           3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

Add an endpoint for deleting an attachment
2 participants