Skip to content

fix: add lifecycle logs for empty bucket operations#1016

Open
itslenny wants to merge 2 commits intomasterfrom
lenny/fix-add-empty-bucket-lifecycle-logs
Open

fix: add lifecycle logs for empty bucket operations#1016
itslenny wants to merge 2 commits intomasterfrom
lenny/fix-add-empty-bucket-lifecycle-logs

Conversation

@itslenny
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

There are no lifecycle logs emitted when emptying buckets

What is the new behavior?

Emit delete object lifecycle logs for all objects removed when a bucket is emptied

@itslenny itslenny requested a review from a team as a code owner April 13, 2026 15:45
@itslenny itslenny force-pushed the lenny/fix-add-empty-bucket-lifecycle-logs branch from 9720478 to fcf131e Compare April 13, 2026 15:46

await backend.deleteObjects(storageS3Bucket, prefixes)

await Promise.allSettled(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we add a test to ensure event is triggerred to prevent regressions?

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 13, 2026

Coverage Report for CI Build 24355971583

Coverage increased (+0.02%) to 80.997%

Details

  • Coverage increased (+0.02%) from the base build.
  • Patch coverage: 14 of 14 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 37680
Covered Lines: 30689
Line Coverage: 81.45%
Relevant Branches: 4246
Covered Branches: 3270
Branch Coverage: 77.01%
Branches in Coverage %: Yes
Coverage Strength: 318.99 hits per line

💛 - Coveralls

@itslenny itslenny requested a review from ferhatelmas April 13, 2026 16:36
@itslenny itslenny force-pushed the lenny/fix-add-empty-bucket-lifecycle-logs branch from ff2ca2f to be116a3 Compare April 13, 2026 16:57
@itslenny itslenny force-pushed the lenny/fix-add-empty-bucket-lifecycle-logs branch from be116a3 to 18024f2 Compare April 13, 2026 16:58
})

it('will emit webhooks for each deleted object during empty bucket operation', async () => {
const emptyTestBucketName = 'bucket-empty-webhook-test'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might be better to make it unique as well

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.

4 participants