Skip to content

Conversation

@pedro-cf
Copy link
Collaborator

@pedro-cf pedro-cf commented May 4, 2024

Related Issue(s):

Description:
Always generate links for all searches, since now base links are generated on the request and no longer stored.

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

@jonhealy1
Copy link
Collaborator

Should we have a test for this?

@pedro-cf
Copy link
Collaborator Author

pedro-cf commented May 5, 2024

Should we have a test for this?

added

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.

Nice work Pedro!

@jonhealy1 jonhealy1 merged commit 8660a13 into stac-utils:main May 6, 2024
@pedro-cf pedro-cf deleted the pagination-links-issue branch May 7, 2024 09:21
jonhealy1 added a commit that referenced this pull request May 8, 2024
)

**Related Issue(s):**

-
#242

**Merge dependencie(s):**

-
#241

**Description:**
- Paginated search queries now don't return a token on the last page.
- Made some fixes to the respective tests. In particular
`test_pagination_token_idempotent` had and indentation issue
- Improved `execute_search` to make use of
`es_response["hits"]["total"]["value"]`

**PR Checklist:**

- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [x] 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