-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow upserting data via bulk transaction requests #64
Conversation
… bulk transaction method param
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.
Actually, can you add a test case demonstrating the upsertion? Thanks! 🙇🏼
…ng the same items twice
9d1ff59
to
0f45da7
Compare
@gadomski Yep, added a couple of tests to confirm the expected behavior. I also modified the response message to reflect the provided insert method (while retaining "added" for the insert method, for the purposes of backward compatibility). Not sure how you feel about that, but happy to revert it to always return "added". |
@edkeeble thanks for the tests! Do you need a release w/ these changes? |
@gadomski Yes, please. I'll put a separate PR up for the release. |
Description:
Along with this PR on stac-fastapi, this change allows a client to make use of the
upsert_items
function by way of the Bulk Transactions extension.PR Checklist:
pre-commit
hooks pass locallymake test
)make docs
)