Skip to content
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

Merged
merged 10 commits into from
Nov 30, 2023

Conversation

edkeeble
Copy link
Contributor

@edkeeble edkeeble commented Oct 23, 2023

Description:

Along with this PR on stac-fastapi, this change allows a client to make use of theupsert_items function by way of the Bulk Transactions extension.

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.

@edkeeble edkeeble marked this pull request as ready for review November 17, 2023 18:39
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.

Actually, can you add a test case demonstrating the upsertion? Thanks! 🙇🏼

@edkeeble edkeeble force-pushed the upsert-bulk-transactions branch from 9d1ff59 to 0f45da7 Compare November 30, 2023 17:27
@edkeeble
Copy link
Contributor Author

Actually, can you add a test case demonstrating the upsertion? Thanks! 🙇🏼

@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".

@gadomski gadomski merged commit f8d4c85 into stac-utils:main Nov 30, 2023
6 checks passed
@gadomski
Copy link
Member

@edkeeble thanks for the tests! Do you need a release w/ these changes?

@edkeeble
Copy link
Contributor Author

edkeeble commented Dec 1, 2023

@gadomski Yes, please. I'll put a separate PR up for the release.

@edkeeble edkeeble deleted the upsert-bulk-transactions branch December 1, 2023 15:18
@edkeeble
Copy link
Contributor Author

edkeeble commented Dec 1, 2023

@gadomski #68

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