Repository navigation
Phase 1: Add S3 object deletion service functions - #129
Merged
neuromechanist merged 2 commits intoFeb 12, 2026
Merged
neuromechanist merged 2 commits into
neuromechanist merged 2 commits into
Conversation
Add deleteObjects (batch Multi-Object Delete), deleteDatasetObjects (all prefixes), and deleteStagingObjects (PR cleanup) to s3.ts. Supports bypass-governance for Object Lock. Tests skip gracefully when AWS credentials are not available. Closes #123
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR129Version: 🤖 Updated on each push. |
- Add try-catch around fetch in deleteObjects (preserves partial progress) - Validate deleted+failed count matches batch size (detect XML parsing gaps) - Check for <DeleteResult> in response (S3 HTTP-200-with-error quirk) - Parse error XML by individual <Error> blocks (handles element reordering) - Refactor applyObjectLock to reuse computeMd5Base64 helper - Add prNumber validation to deleteStagingObjects - Wrap deleteDatasetObjects prefix loop in try-catch (partial progress) - Add test for invalid PR number validation
neuromechanist
merged commit Feb 12, 2026
a2a2be7
into
feature/issue-128-epic-deletion
1 check passed
This was referenced Feb 12, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deleteObjects()- batch Multi-Object Delete API (POST /?delete) with XML body, Content-MD5, up to 1000 keys per batchdeleteDatasetObjects()- deletes all objects acrossobjects/,version/,archives/prefixes with dataset ID validationdeleteStagingObjects()- cleans up PR staging area (staging/pr-{n}/{datasetId}/)bypassGovernanceflag for deleting Object Lock-protected objectsescapeXml()andcomputeMd5Base64()internal helpersTest plan
test/s3-deletion.test.tsbunx biome checkpassesbun run typecheckpasses (backend)Closes #123
Part of Epic #128 (Dataset deletion system)