Skip to content

Sagark/validate render tags on load#856

Open
sagarswamirao wants to merge 3 commits into
mainfrom
sagark/validate-render-tags-on-load
Open

Sagark/validate render tags on load#856
sagarswamirao wants to merge 3 commits into
mainfrom
sagark/validate-render-tags-on-load

Conversation

@sagarswamirao

Copy link
Copy Markdown
Collaborator

No description provided.

sagarswamirao and others added 3 commits June 11, 2026 02:43
Renderer tags (for example `# big_value`, `# line_chart`) are validated by the
renderer at render time, but a misconfigured tag was previously invisible until
a view was queried -- and could render as "[object Object]". One case: a
child-only big_value config such as `# big_value { sparkline=... }` placed on a
view with no activating big_value. The renderer declines to match it, and the
result falls through to a String() coercion.

Validate renderer tags during the package-load compile pass instead, alongside
the existing #(authorize) check. For each top-level query and each source view,
prepare the query (compile only, no execution), take its stable result schema,
and run the renderer's headless `validateRenderTags`. Any error-severity finding
throws a ModelCompilationError, which the worker reports as the model's
compilationError (HTTP 424) -- so a bad tag fails the load with a clear message
rather than producing garbage at render time.

Only error-severity findings are fatal; warnings remain on the query-time
`renderLogs` surface so a benign render lint never blocks a package load.

Signed-off-by: Sagar Swami Rao Kulkarni <[email protected]>
…d pool issues

Updated the test suite to replace the singleton PackageLoadPool with a fresh instance at the end of each test. This change prevents potential failures in subsequent tests due to the singleton pool being shut down, ensuring that tests run in isolation without interference from previous executions.

Signed-off-by: [Your Name] <[email protected]>
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