Skip to content

fix(statistics): make statistics page resilient to malformed data - #2609

Merged
mburri merged 4 commits into
mainfrom
fix/lindassup-395-statistics-page
Nov 6, 2026
Merged

mburri merged 4 commits into
mainfrom
fix/lindassup-395-statistics-page

Conversation

@mburri

@mburri mburri commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Makes /statistics resilient to malformed data in config.data (previously crashed getServerSideProps →
500).

• fetchChartsMetadata : guard jsonb_array_elements against non-array chartConfigs / cubes ; reject null/
unsafe iris in SQL; GROUP BY config.id instead of the full jsonb blob.
• queryCubesMetadata : filter out SPARQL-unsafe IRIs, chunk lookups, tolerate endpoint failures/malformed
rows with IRI-as-title fallback.

Root cause (unvalidated POST /api/config-create ) is tracked as follow-up work.

Assisted-By: Devin

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
visualization-tool Ready Ready Preview Nov 6, 2026 11:05am UTC

Request Review

@mburri
mburri merged commit a07bedb into main Nov 6, 2026
12 checks passed
@mburri
mburri deleted the fix/lindassup-395-statistics-page branch November 6, 2026 12:59

This branch was successfully deployed

1 active deployment
Preview — 71dab4a9 Deployed Nov 6, 2026 by vercel[bot]
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.

2 participants