Repository navigation
feat: add collection id to offloaded payload obj name & metadata - #2774
Merged
Merged
Conversation
chenba
force-pushed
the
feat/gcs-obj-name-with-collection-id-stor-762
branch
from
November 19, 2026 19:18
8308f38 to
95fb53d
Compare
chenba
force-pushed
the
feat/gcs-obj-name-with-collection-id-stor-762
branch
from
December 2, 2026 17:12
95fb53d to
6ec9d9d
Compare
Collaborator
Author
|
@pjenvey I made changes to create the collection when the id's not found |
pjenvey
reviewed
Dec 2, 2026
pjenvey
left a comment
Member
There was a problem hiding this comment.
Great, thanks for doing this!
Comment on lines
+135
to
+140
| // Outside a transaction, this also caches the id of an existing row. | ||
| match db._get_collection_id(name).await { | ||
| Err(e) if e.is_collection_not_found() => {} | ||
| result => return result, | ||
| } | ||
|
|
Member
There was a problem hiding this comment.
I think we can remove this call as a) we just checked the cache b) get_or_create_collection_id does it internally, albeit within a write transaction (not caching its result), but then we explicitly cache the result on success anyway, since it's safe to do so as we either successfully wrote or read it from the db or cache
Because: - we want to include the offloaded payload's collection id in the gcs object name This commit: - looks up the collection id prior to gcs upload - adds the collection id to the gcs object name as well as the metadata
chenba
force-pushed
the
feat/gcs-obj-name-with-collection-id-stor-762
branch
from
December 2, 2026 22:49
6ec9d9d to
b6df24d
Compare
pjenvey
approved these changes
Dec 2, 2026
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.
Because:
This commit:
Closes STOR-762