Skip to content

Conversation

rhysrevans3
Copy link
Collaborator

@rhysrevans3 rhysrevans3 commented Mar 21, 2025

Description:

There are a number of extensions that include extra fields within an Item's assets. It would be useful to allow users to filter items based on these fields.

Mapping assets from an Object to a Array of Objects prevents "mapping explosion" from asset keys without needing to disable indexing on the assets.

It does have some search implications. See first "note" here.

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

@rhysrevans3 rhysrevans3 marked this pull request as ready for review September 3, 2025 09:53
@rhysrevans3 rhysrevans3 requested review from jonhealy1 and jamesfisher-geo and removed request for jonhealy1 September 3, 2025 09:53
@rhysrevans3 rhysrevans3 changed the title Unique asset names Enabling asset indexing Sep 3, 2025
Copy link
Collaborator

@jamesfisher-geo jamesfisher-geo left a comment

Choose a reason for hiding this comment

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

Looks great to me and definitely useful.

This isn't your responsibility to create here, but it would be great to create some unit tests for the ItemSerializer and the CollectionSerializer.

Approved, but I'll leave this for Jon to review and merge

@jamesfisher-geo
Copy link
Collaborator

Looks great to me and definitely useful.

This isn't your responsibility, but it would be great to create some unit tests for the ItemSerializer and the CollectionSerializer.

Approved, but I'll leave this for Jon to review and merge

Added a ticket to track unit tests here: #425

@jonhealy1 jonhealy1 merged commit 8974c38 into stac-utils:main Sep 4, 2025
15 checks passed
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.

3 participants