feat(gridfs): MongoDB GridFS backend with native revisions and server-side find - #566
Merged
Conversation
…-side find Python + TypeScript GridFS resource mirroring the s3 backend: filenames as slash-separated keys, zero-byte trailing-slash marker docs for directories, full read/write command surface via the generic factories. - Writes upload a new revision and keep old ones; reads/listings resolve latest-per-filename via one fs.files aggregation; snapshot-pinned reads fetch old revisions by file _id; mv retags filenames server-side so history moves with the file; rm deletes all revisions. - find pushes -name/-iname/-type/-size into the fs.files query (anchored basename regex, marker-shape test, length bounds); every pushed condition is a superset of GNU semantics and the shared keep() pass stays authoritative, so behavior matches the other backends exactly. - Integ: gridfs + gridfs-prefix targets enrolled everywhere s3/s3-prefix run; 1101/1101 on both hosts; mongo:8 service added to integ-shared. - Docs: setup + python resource + typescript setup pages, matrix row, nav entries, README backend lists.
zechengz
enabled auto-merge (squash)
July 19, 2026 07:26
zechengz
disabled auto-merge
July 19, 2026 08:09
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
gridfsbackend in Python and TypeScript (node), mirroring the s3 backend: GridFS filenames as slash-separated keys, trailing-slash marker docs for directories, full read/write command surface via the generic factories. Config:uri,database,bucket(defaultfs),key_prefix,chunk_size_bytes.fs.filesaggregation; snapshot-pinned reads fetch old revisions by file_id;mvretags filenames server-side so history moves with the file;rmdeletes all revisions.-name/-iname/-type/-sizepush into thefs.filesquery (anchored basename regex, marker-shape test, length bounds). Every pushed condition is a superset of GNU semantics and the sharedkeep()pass stays authoritative, so output matches every other backend.gridfs+gridfs-prefixtargets enrolled everywheres3/s3-prefixrun — 1101/1101 on both hosts locally; mongo:8 service added to the integ-shared job; gridfs added to the install matrix.Testing