mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #189] [MERGED] Implement minimal support for PATCH metadata API #420
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#420
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/189
Author: @snawaz
Created: 3/3/2020
Status: ✅ Merged
Merged: 3/6/2020
Merged by: @fsouza
Base:
master← Head:impl-minimal-patch📝 Commits (2)
60ab22aImplement minimal support for PATCH metadata API1ef837bAdd test for PATCH API📊 Changes
6 files changed (+117 additions, -0 deletions)
View changed files
📝
fakestorage/object.go(+22 -0)📝
fakestorage/object_test.go(+63 -0)📝
fakestorage/server.go(+1 -0)📝
internal/backend/fs.go(+15 -0)📝
internal/backend/memory.go(+15 -0)📝
internal/backend/storage.go(+1 -0)📄 Description
This PR implements minimal support for
PATCHobject's metadata API.It patches the object's metadata as per
path parametersandmetadatain the request body. It completely ignores theoptional query parametersof the API, which are slightly complex. So if this minimal support is acceptable, then we can merge it, and the optional query parameters can be taken care of in later PRs (if needed).API Ref: https://cloud.google.com/storage/docs/json_api/v1/objects/patch
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.