Skip to content

Add /user-bucket/objects delete endpoint; return 400 for invalid TES requests#101

Merged
paulineribeyre merged 9 commits intomasterfrom
chore/delete_bucket_false
Feb 11, 2026
Merged

Add /user-bucket/objects delete endpoint; return 400 for invalid TES requests#101
paulineribeyre merged 9 commits intomasterfrom
chore/delete_bucket_false

Conversation

@nss10
Copy link
Contributor

@nss10 nss10 commented Feb 10, 2026

Link to JIRA ticket if there is one: MIDRC-1180

New Features

  • Add DELETE /user-bucket/objects endpoint

Breaking Changes

Bug Fixes

  • Fix TES invalid request handling

Improvements

Dependency updates

Deployment changes

@nss10 nss10 requested a review from paulineribeyre February 10, 2026 21:59
@github-actions
Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@coveralls
Copy link

coveralls commented Feb 10, 2026

Pull Request Test Coverage Report for Build 21914996984

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 25 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.1%) to 88.796%

Files with Coverage Reduction New Missed Lines %
routes/storage.py 1 97.3%
aws_utils.py 3 87.9%
routes/ga4gh_tes.py 21 84.71%
Totals Coverage Status
Change from base Build 21768662696: 0.1%
Covered Lines: 634
Relevant Lines: 714

💛 - Coveralls

@github-actions
Copy link

filepath passed SUBTOTAL
tests/test_gen3_workflow.py 13 13
TOTAL 13 13

Please find the detailed integration test report here

Please find the Github Action logs here

Copy link
Collaborator

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice
I think you need to update the branch

Comment on lines +99 to +102
raise HTTPException(
status_code=HTTP_400_BAD_REQUEST,
detail=f"Invalid JSON in request body: {e.msg}",
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could move the try/catch to get_request_body around json.loads(body)

Comment on lines +67 to +70
"details": (
"Amazon S3 processes bucket deletion asynchronously. "
"The bucket may remain visible for a short period until "
"deletion fully propagates across AWS."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@github-actions
Copy link

filepath error SUBTOTAL
tests/test_gen3_workflow.py 13 13
TOTAL 13 13

Please find the detailed integration test report here

Please find the Github Action logs here

@github-actions
Copy link

filepath passed error SUBTOTAL
tests/test_gen3_workflow.py 13 1 14
TOTAL 13 1 14

Please find the detailed integration test report here

Please find the Github Action logs here

@github-actions
Copy link

filepath passed SUBTOTAL
tests/test_gen3_workflow.py 13 13
TOTAL 13 13

Please find the detailed integration test report here

Please find the Github Action logs here

@nss10
Copy link
Contributor Author

nss10 commented Feb 11, 2026

This PR relies on gen3-code-vigil branch : cleanup_gen3wf_aws_resources for CI.
Now that this CI is passed, I can revert this commit and force merge this PR

Or wait for the gen3-code-vigil#462 to merge before merging this PR.

@nss10 nss10 requested a review from paulineribeyre February 11, 2026 15:59
paulineribeyre
paulineribeyre previously approved these changes Feb 11, 2026
@paulineribeyre paulineribeyre merged commit 9a1c668 into master Feb 11, 2026
12 of 13 checks passed
@paulineribeyre paulineribeyre deleted the chore/delete_bucket_false branch February 11, 2026 17:23
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.

3 participants