Skip to content

fix: add outputformat to API call for SavedQuery#1121

Merged
SjurSutterudSagen merged 1 commit intomainfrom
fix/improve-savedquery-handling-by-specifically-asking-for-supported-response-format
Feb 2, 2026
Merged

fix: add outputformat to API call for SavedQuery#1121
SjurSutterudSagen merged 1 commit intomainfrom
fix/improve-savedquery-handling-by-specifically-asking-for-supported-response-format

Conversation

@SjurSutterudSagen
Copy link
Contributor

This fixes a situation where a SavedQuery fails to load data in TableView, because it's outputformat was not Json-stat2. We now ask for Json-stat2 specifically when fetching the SQ data, since this is the only format PxWeb2 understands.

This fixes a situation where a SavedQuery fails to load data in
TableView, because it's outputformat was not Json-stat2. We now ask for
Json-stat2 specifically when fetching the SQ data, since this is the
only format PxWeb2 understands.

We should also add these kinds of fixes to the remaining API calls, but
that is outside this PR. I will create a task for that, so people can
have a different default in the PxWeb2Api than Json-stat2.
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Branch Deployment to Cloudflare Pages

🚛 Preview URL: https://84fd5a7d.pxweb2.pages.dev
🚧 Branch preview URL: https://fix-improve-savedquery-handl.pxweb2.pages.dev
🚚 Alternative Preview URL: https://dd6a5436.pxweb2.pages.dev
👷 Alternative Branch preview URL: https://alternative-fix-improve-save.pxweb2.pages.dev

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@SjurSutterudSagen SjurSutterudSagen changed the title fix: Improve SQ handling: add outputformat to API call fix: add outputformat to API call for SavedQuery Feb 2, 2026
@SjurSutterudSagen SjurSutterudSagen marked this pull request as ready for review February 2, 2026 11:54
Copy link
Contributor

@MikaelNordberg MikaelNordberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@SjurSutterudSagen SjurSutterudSagen merged commit bba1995 into main Feb 2, 2026
14 checks passed
@SjurSutterudSagen SjurSutterudSagen deleted the fix/improve-savedquery-handling-by-specifically-asking-for-supported-response-format branch February 2, 2026 13:34
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