Skip to content

docs(config): collection_url is required for nested collections (#257) - #261

Merged
cboettig merged 1 commit into
mainfrom
docs/collection-url-nested-257
Jun 20, 2026
Merged

docs(config): collection_url is required for nested collections (#257)#261
cboettig merged 1 commit into
mainfrom
docs/collection-url-nested-257

Conversation

@cboettig

Copy link
Copy Markdown
Member

Fixes #257.

Problem

docs/guide/configuration.md described collection_url as only "useful for private or external catalogs." That's misleading and caused a real silent failure.

Confirmed against dataset-catalog.js load(): bare collection_ids are resolved by filtering only the root catalog's rel=child links — there is no recursion into parent/container collections. A collection nested under a parent (even in the same public catalog) is never found, and the miss only logs a console.warn — no user-visible error.

Incident (ca-30x30): 15 of 17 collections were configured with bare collection_ids because they appeared in flat list_datasets output. They live under parent collections and silently dropped; only the 2 carrying an explicit collection_url rendered.

Fix (docs only)

  • Rewrite the collection_url table row: required for any non-direct-child collection; recommended for top-level too (skips the slow walk).
  • Add a Nested collections subsection: how to detect (inspect root links[rel=child]), how to find the URL (the collection JSON's self href), and the rename/move maintenance trade-off.
  • Add a troubleshooting note: layer never appears + correct collection_id → probably nested, set collection_url.

The new #nested-collections anchor is referenced from the table row.

…ons (#257)

The Collections table described collection_url as only for 'private or
external catalogs', but the framework resolves bare collection_ids by
scanning only the root catalog's direct child links — it never recurses
into parent/container collections. A collection nested under a parent
(even in the same public catalog) silently never loads without an
explicit collection_url (the miss is only a console.warn).

This caused ca-30x30 to silently drop 15 of 17 collections. Update the
table row, add a 'Nested collections' subsection (how to detect, how to
find the URL, the maintenance trade-off), and a troubleshooting note.
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 49.43% 3501 / 7082
🔵 Statements 49.41% 3501 / 7085
🔵 Functions 57.4% 124 / 216
🔵 Branches 81.72% 671 / 821
File CoverageNo changed files found.
Generated in workflow #103 for commit 81686bd by the Vitest Coverage Report Action

@cboettig
cboettig merged commit 08c5d58 into main Jun 20, 2026
1 check passed
@cboettig
cboettig deleted the docs/collection-url-nested-257 branch June 20, 2026 19:21
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.

docs: collection_url under-documented — it's required for nested (non-root-child) collections, not just private/external catalogs

1 participant