Fix article type misclassification, missing zh sources, and last-generation.json schema incompatibility#373
Merged
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom Feb 20, 2026
Conversation
…d-compatibility Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Update immigration reform reports from Riksdag
Fix article type misclassification, missing zh sources, and last-generation.json schema incompatibility
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three correctness issues in the immigration reform articles PR: wrong article type causing UI filter misclassification, inconsistent sources in the zh article, and a schema breaking change in the metadata file.
Changes
news/index_no.html—type: "prospective"→"analysis"for the immigration reform entry; this was breaking client-side article filteringnews/2026-02-20-immigration-reform-reports-zh.html— Added SfU31 and SfU35 source links; both documents were referenced in the article body but absent from the Sources sectionnews/metadata/last-generation.json— Added backward-compatible keys (types,languagesGenerated,generated,errors,articles) alongside the existing schema v2 fields;generate-news-enhanced.jswrites and consumers read this shape, so the realtime-monitor-written file was silently breaking them:🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.