mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #823] [MERGED] return attrs for newly created object in rewrite #947
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#947
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/823
Author: @jess-sheneberger
Created: 6/7/2022
Status: ✅ Merged
Merged: 6/9/2022
Merged by: @fsouza
Base:
main← Head:main📝 Commits (3)
f32c22areturn attrs for newly created object in rewritefa1a3c2update rewrite tests to fail if generation == 083441b5gofumpt📊 Changes
2 files changed (+8 additions, -2 deletions)
View changed files
📝
fakestorage/object.go(+2 -2)📝
fakestorage/object_test.go(+6 -0)📄 Description
When using Copier.Run to copy a file the resulting attributes object had 0 for generation. This change seems to populate the generation field with the value from the created object, but I'm not certain it's actually the correct fix--maybe the other attributes should be from newObject?
Please let me know if you need more information about the issue or the change. The tests appear to be passing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.