Skip to content

Return empty viewer contributions when extensions are not configured - #1246

Open
freds-dev wants to merge 1 commit into
mainfrom
freds-dev/fix-#1245
Open

Return empty viewer contributions when extensions are not configured#1246
freds-dev wants to merge 1 commit into
mainfrom
freds-dev/fix-#1245

Conversation

@freds-dev

@freds-dev freds-dev commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Description

Return an empty contributions collection from GET /viewer/ext/contributions when no viewer extensions are configured, instead of responding with 404 No extensions configured.

This prevents xcube Viewer from producing a misleading failed-resource error in browser DevTools during normal startup without extensions.

Updated the default-configuration route test to assert the empty successful response.

Checklist:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions (not applicable; no new or modified public Python API)
  • New/modified features documented in docs/source/* (not applicable; this is a response-status correction)
  • Changes documented in CHANGES.md
  • GitHub CI passes
  • Test coverage remains or increases (not measured locally)

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