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

Always generate links for all searches #241

Merged
merged 6 commits into from
May 6, 2024

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

CHANGELOG.md Outdated Show resolved Hide resolved
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
4 checks passed
@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 <jonathan.d.healy@gmail.com>
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.

None yet

2 participants