Skip to content

Fix dataset display labels to reflect dataset kind - #63

Merged
snamber merged 1 commit into
mainfrom
fix/dataset-kind-display
Oct 4, 2026
Merged

snamber merged 1 commit into
mainfrom
fix/dataset-kind-display

Conversation

@snamber

@snamber snamber commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Both sync and async DatasetClient representations now display Temporal Dataset or Spatiotemporal Dataset based on the kind returned by the API. Unspecified kinds use Dataset rather than guessing.

The API already returns AnnotatedType.kind, but the Python model discarded it. Preserve that metadata in both protobuf conversion directions, with a default of None to retain compatibility with existing constructors.

This fixes the misleading Timeseries Dataset label observed in the s2-sen2cor example. Dataset creation and geometry ingestion are unchanged; no schema or generated-code changes are needed.

Verification

  • After removing the added regression test as requested: all 25 existing client tests passed; Ruff passed.
  • Before test removal, the full datasets suite passed (201 tests), along with Ruff, type checks, and six regression cases. Production code is unchanged since those checks.
  • A local notebook verified both kinds and sync/async parity against the real catalog using read-only API calls. The notebook and Jupyter runtime files are not included in this PR.

@snamber
snamber force-pushed the fix/dataset-kind-display branch from 6c458f1 to 7eacbee Compare October 4, 2026 01:54
Preserve AnnotatedType kind metadata and use it in both client representations.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a10420-0f3b-74bc-a0e1-29880126b319
@snamber
snamber force-pushed the fix/dataset-kind-display branch from 7eacbee to d0aa8ea Compare October 4, 2026 01:57
@snamber
snamber merged commit d0aa8ea into main Oct 4, 2026
9 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.

1 participant