Skip to content

Conversation

@z-mrozu
Copy link
Contributor

@z-mrozu z-mrozu commented Sep 11, 2025

Description:
The /collections/{collection_id}/bulk_items endpoint does not work when ENABLE_DATETIME_INDEX_FILTERING is set to true, as only the async /collections/{collection_id}/items version was implemented while the sync /collections/{collection_id}/bulk_items wasn't. This PR blocks the /bulk_items endpoint when ENABLE_DATETIME_INDEX_FILTERING is set to true.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@z-mrozu z-mrozu marked this pull request as ready for review September 11, 2025 13:53
@jonhealy1
Copy link
Collaborator

@z-mrozu we should probably create an issue to eventually fix this - if it can be fixed

@z-mrozu
Copy link
Contributor Author

z-mrozu commented Sep 12, 2025

@jonhealy1 I'm not sure if we'd want to - datetime index filtering by @GrzegorzPustulka was implemented only in async code (and probably won't be in sync, but correct me if I'm wrong) and it would have to be implemented in sync too for the /bulk_items endpoint to work, right?

@jonhealy1
Copy link
Collaborator

I was thinking more along the lines of having an async bulk transactions client. Your recommendation to post a feature collection to the /items endpoint is really good.

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

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

@z-mrozu nice work

@jonhealy1 jonhealy1 merged commit 5723bba into stac-utils:main Sep 13, 2025
15 checks passed
YuriZmytrakov pushed a commit to YuriZmytrakov/stac-fastapi-elasticsearch-opensearch that referenced this pull request Sep 15, 2025
…ac-utils#438)

**Description:**
The `/collections/{collection_id}/bulk_items` endpoint does not work
when `ENABLE_DATETIME_INDEX_FILTERING` is set to true, as only the async
`/collections/{collection_id}/items` version was implemented while the
sync `/collections/{collection_id}/bulk_items` wasn't. This PR blocks
the /bulk_items endpoint when `ENABLE_DATETIME_INDEX_FILTERING` is set
to true.

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog

---------

Co-authored-by: Jonathan Healy <[email protected]>
YuriZmytrakov pushed a commit to YuriZmytrakov/stac-fastapi-elasticsearch-opensearch that referenced this pull request Sep 15, 2025
…ac-utils#438)

**Description:**
The `/collections/{collection_id}/bulk_items` endpoint does not work
when `ENABLE_DATETIME_INDEX_FILTERING` is set to true, as only the async
`/collections/{collection_id}/items` version was implemented while the
sync `/collections/{collection_id}/bulk_items` wasn't. This PR blocks
the /bulk_items endpoint when `ENABLE_DATETIME_INDEX_FILTERING` is set
to true.

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog

---------

Co-authored-by: Jonathan Healy <[email protected]>
YuriZmytrakov pushed a commit to YuriZmytrakov/stac-fastapi-elasticsearch-opensearch that referenced this pull request Sep 16, 2025
…ac-utils#438)

**Description:**
The `/collections/{collection_id}/bulk_items` endpoint does not work
when `ENABLE_DATETIME_INDEX_FILTERING` is set to true, as only the async
`/collections/{collection_id}/items` version was implemented while the
sync `/collections/{collection_id}/bulk_items` wasn't. This PR blocks
the /bulk_items endpoint when `ENABLE_DATETIME_INDEX_FILTERING` is set
to true.

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog

---------

Co-authored-by: Jonathan Healy <[email protected]>
YuriZmytrakov pushed a commit to YuriZmytrakov/stac-fastapi-elasticsearch-opensearch that referenced this pull request Sep 23, 2025
…ac-utils#438)

**Description:**
The `/collections/{collection_id}/bulk_items` endpoint does not work
when `ENABLE_DATETIME_INDEX_FILTERING` is set to true, as only the async
`/collections/{collection_id}/items` version was implemented while the
sync `/collections/{collection_id}/bulk_items` wasn't. This PR blocks
the /bulk_items endpoint when `ENABLE_DATETIME_INDEX_FILTERING` is set
to true.

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog

---------

Co-authored-by: Jonathan Healy <[email protected]>
YuriZmytrakov pushed a commit to YuriZmytrakov/stac-fastapi-elasticsearch-opensearch that referenced this pull request Sep 23, 2025
…ac-utils#438)

**Description:**
The `/collections/{collection_id}/bulk_items` endpoint does not work
when `ENABLE_DATETIME_INDEX_FILTERING` is set to true, as only the async
`/collections/{collection_id}/items` version was implemented while the
sync `/collections/{collection_id}/bulk_items` wasn't. This PR blocks
the /bulk_items endpoint when `ENABLE_DATETIME_INDEX_FILTERING` is set
to true.

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog

---------

Co-authored-by: Jonathan Healy <[email protected]>
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