Skip to content

replace improper CollectionMetadata usage with CubeMetadata - #950

Open
soxofaan wants to merge 3 commits into
masterfrom
issue949-cube-metadata2
Open

soxofaan wants to merge 3 commits into
masterfrom
issue949-cube-metadata2

Conversation

@soxofaan

@soxofaan soxofaan commented Oct 6, 2026

Copy link
Copy Markdown
Member

Issue #949

eliminate improper usage of CollectionMetadata

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

It introduces a breaking constructor signature and crashes platform inference for parameterized collections.

Review effort: Balanced
Findings: 2 Medium severity · 2 Low severity

Open (4)
What changed in this PR

Decouples cube metadata from collection metadata for issue #949.

Changes:

  • Uses CubeMetadata for raster, vector, and local STAC cubes.
  • Infers spectral platforms from process-graph collection IDs.
  • Documents remaining metadata coupling.
File Description
openeo/​rest/​datacube.py Converts loaded collection metadata to cube metadata.
openeo/​rest/​vectorcube.py Uses cube metadata for vector cubes.
openeo/​local/​connection.py Uses cube metadata for local STAC loading.
openeo/​extra/​spectral_indices/​spectral_indices.py Infers platforms from collection nodes.
openeo/​metadata/​__init__.py Documents metadata design debt.
openeo/​udf/​udf_signatures.py Notes remaining collection metadata usage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread openeo/extra/spectral_indices/spectral_indices.py
Comment thread openeo/rest/datacube.py
attrs[at] = str(attrs[at])
metadata = CollectionMetadata(
attrs,
metadata = CubeMetadata(
Comment thread openeo/udf/udf_signatures.py Outdated
soxofaan and others added 2 commits October 6, 2026 19:31
…IDs for platform inference'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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