mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #1036] [MERGED] Fix custom-time error #1135
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#1135
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/1036
Author: @RachitSharma2001
Created: 1/9/2023
Status: ✅ Merged
Merged: 1/9/2023
Merged by: @fsouza
Base:
main← Head:fix-custom-time-error📝 Commits (1)
e33baeaFix custom-time error📊 Changes
6 files changed (+91 additions, -35 deletions)
View changed files
📝
fakestorage/object.go(+33 -35)📝
fakestorage/object_test.go(+41 -0)📝
fakestorage/response.go(+2 -0)📝
fakestorage/upload.go(+8 -0)📝
fakestorage/upload_test.go(+6 -0)📝
internal/backend/object.go(+1 -0)📄 Description
Fixes https://github.com/fsouza/fake-gcs-server/issues/410.
If I now run the following python script:
It now does not print
Nonebut rather prints the correct time.Let me know if there is anything I should change or add. One thing I was unsure of is that in
fakestorage/object.go, I did not make any changes toUpdateObject, so it still only updates metadata rather than any other attributes likeCustomTimeorAcl(unlike thePatchObjectmethod). Let me know ifUpdateObjectshould be similarly changed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.