Skip to content

Commit 04a25ce

Browse files
committed
fix(metadata): the residual rule walks top-level datasets
Claude-Session: https://claude.ai/code/session_01JQwxbaRjbDqdsjbNUjKQJZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5590865 commit 04a25ce

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/metadata/src/plugin.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ const ARTIFACT_FIELD_TO_TYPE: Record<string, string> = {
135135
pages: 'page',
136136
dashboards: 'dashboard',
137137
reports: 'report',
138+
// [ADR-0021, ADR-0130 D4] The analytics datasets a dashboard or report names.
139+
// Mapped so the residual rule walks them too: without this entry a
140+
// `packages[]` stack's top-level dataset that no body declared was neither
141+
// registered nor refused, and the dashboard naming it failed at run time.
142+
// Not the seed `data:` collection, which stays unmapped (see the end of
143+
// this map).
144+
datasets: 'dataset',
138145
actions: 'action',
139146
// `themes: 'theme'` removed by commit 35ad101bc (ADR-0049): the carrier key is
140147
// retired, so a parsed artifact can no longer carry the field — and the

0 commit comments

Comments
 (0)