Skip to content

Control canonical links in load_stac_from_job#916

Open
Silvren wants to merge 1 commit into
Open-EO:masterfrom
Silvren:agent/control-job-canonical-link
Open

Control canonical links in load_stac_from_job#916
Silvren wants to merge 1 commit into
Open-EO:masterfrom
Silvren:agent/control-job-canonical-link

Conversation

@Silvren

@Silvren Silvren commented Jul 13, 2026

Copy link
Copy Markdown

Summary

  • add a keyword-only canonical_link mode to Connection.load_stac_from_job
  • preserve current behavior with "auto": prefer a canonical link and fall back to the regular results URL
  • support "require" to fail fast when no signed canonical link can be obtained
  • support "avoid" to use the regular results URL without fetching result metadata
  • validate unsupported mode values and document the new API

Testing

  • python -m pytest tests/rest/test_connection.py::TestLoadStac -q (65 passed)
  • pre-commit run --files CHANGELOG.md openeo/rest/connection.py tests/rest/test_connection.py

Fixes #634

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.

load_stac_from_job: add option to require or avoid the canonical link

1 participant