-
Notifications
You must be signed in to change notification settings - Fork 39
add patch support #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add patch support #264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some light tweaks.
@@ -1,6 +1,6 @@ | |||
services: | |||
app: | |||
container_name: stac-fastapi-pgstac | |||
#container_name: stac-fastapi-pgstac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're not using, can we delete the line instead of commenting?
#container_name: stac-fastapi-pgstac |
@@ -30,7 +30,7 @@ services: | |||
command: bash -c "./scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app" | |||
|
|||
tests: | |||
container_name: stac-fastapi-pgstac-test | |||
#container_name: stac-fastapi-pgstac-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#container_name: stac-fastapi-pgstac-test |
@@ -45,7 +45,7 @@ services: | |||
command: bash -c "python -m pytest -s -vv" | |||
|
|||
database: | |||
container_name: stac-db | |||
#container_name: stac-db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#container_name: stac-db |
item = merge(existing, partial) | ||
else: | ||
raise Exception( | ||
"Patch must be a list of PatchOperations or a PartialCollection." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Patch must be a list of PatchOperations or a PartialCollection." | |
"Patch must be a list of PatchOperations or a PartialItem." |
Related Issue(s):
Description:
Implement Patch for Collections and Items Endpoints.
PR Checklist:
pre-commit
hooks pass locallymake test
)make docs
)