Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

add patch support #264

wants to merge 2 commits into from

Conversation

bitner
Copy link
Collaborator

@bitner bitner commented Jul 10, 2025

Related Issue(s):

Description:
Implement Patch for Collections and Items Endpoints.

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
  • Changes are added to the CHANGELOG.

@bitner bitner marked this pull request as ready for review July 10, 2025 21:29
@bitner bitner requested review from vincentsarago and gadomski July 10, 2025 21:29
Copy link
Member

@gadomski gadomski left a 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
Copy link
Member

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?

Suggested change
#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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#container_name: stac-db

item = merge(existing, partial)
else:
raise Exception(
"Patch must be a list of PatchOperations or a PartialCollection."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Patch must be a list of PatchOperations or a PartialCollection."
"Patch must be a list of PatchOperations or a PartialItem."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants