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

use a stable sort by default for all queries for Items #52

Merged
merged 14 commits into from
Mar 15, 2022

Conversation

philvarner
Copy link
Collaborator

@philvarner philvarner commented Mar 15, 2022

Related Issue(s):

Description:

Previously, no default sort was used. Now, a default sort of properties.datetime,id,collections is used.

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, and docs build successfully (run make docs)
  • Changes are added to the changelog

@philvarner philvarner changed the title Pv/default to stable sort use a stable sort by default for all queries for Items Mar 15, 2022
@@ -1,7 +1,7 @@
"""Item crud client."""
import json
import logging
from datetime import datetime
from datetime import datetime as datetime_type
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixes a warning about variables shadowing outer scope

Search()
.using(self.client)
.index("stac_items")
.sort(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

applies a sort now.

@philvarner philvarner marked this pull request as ready for review March 15, 2022 17:35
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

@philvarner philvarner merged commit 9445a09 into main Mar 15, 2022
@philvarner philvarner deleted the pv/default-to-stable-sort branch March 15, 2022 20:10
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

3 participants