Skip to content

Comments

Fix article type misclassification, missing zh sources, and last-generation.json schema incompatibility#373

Merged
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom
copilot/sub-pr-369
Feb 20, 2026
Merged

Fix article type misclassification, missing zh sources, and last-generation.json schema incompatibility#373
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom
copilot/sub-pr-369

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

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.htmltype: "prospective""analysis" for the immigration reform entry; this was breaking client-side article filtering
  • news/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 section
  • news/metadata/last-generation.json — Added backward-compatible keys (types, languagesGenerated, generated, errors, articles) alongside the existing schema v2 fields; generate-news-enhanced.js writes and consumers read this shape, so the realtime-monitor-written file was silently breaking them:
// Before: only schema v2 keys (events_detected, articles_generated, …)
// After: schema v2 keys retained + legacy keys added
"types": ["breaking"],
"languagesGenerated": ["en", "sv", "da", ],
"generated": 14,
"errors": 0,
"articles": ["immigration-reform-reports"]

🔒 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.

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
Copilot AI requested a review from pethers February 20, 2026 17:04
@pethers pethers marked this pull request as ready for review February 20, 2026 17:15
@pethers pethers merged commit d241c75 into main-2f13dfa4453c0f8d Feb 20, 2026
@pethers pethers deleted the copilot/sub-pr-369 branch February 20, 2026 17:15
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