From f6d3d03c56e3c321ece9d21732cc9e00ec3aef65 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Wed, 14 Jan 2026 20:07:43 -0500 Subject: [PATCH] fix: remove RSS content from Editorial working group Migration 153 incorrectly swept ALL perspectives with NULL working_group_id into the Editorial working group, including RSS feed articles. This migration sets working_group_id = NULL for all rss/email sourced content, so it displays via The Latest sections through addie_knowledge instead of on working group pages. Co-Authored-By: Claude Opus 4.5 --- .changeset/legal-islands-kick.md | 8 ++++++++ .../169_remove_rss_from_editorial.sql | 20 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .changeset/legal-islands-kick.md create mode 100644 server/src/db/migrations/169_remove_rss_from_editorial.sql diff --git a/.changeset/legal-islands-kick.md b/.changeset/legal-islands-kick.md new file mode 100644 index 0000000000..10b4399a09 --- /dev/null +++ b/.changeset/legal-islands-kick.md @@ -0,0 +1,8 @@ +--- +--- + +fix: Remove RSS and email content from Editorial working group + +Migration 153 incorrectly swept RSS feed articles into the Editorial working group. +RSS content should remain unassigned (working_group_id = NULL) and display +via The Latest sections through addie_knowledge. diff --git a/server/src/db/migrations/169_remove_rss_from_editorial.sql b/server/src/db/migrations/169_remove_rss_from_editorial.sql new file mode 100644 index 0000000000..2461242d01 --- /dev/null +++ b/server/src/db/migrations/169_remove_rss_from_editorial.sql @@ -0,0 +1,20 @@ +-- Migration: 169_remove_rss_from_editorial.sql +-- Fix: Remove RSS-sourced content from Editorial working group +-- +-- Migration 153 incorrectly swept ALL perspectives with NULL working_group_id +-- into the Editorial working group, including RSS feed articles. +-- RSS content should remain unassigned (working_group_id = NULL) and display +-- via The Latest sections through addie_knowledge, not on working group pages. + +-- ============================================================================= +-- Remove RSS and email content from any working group +-- ============================================================================= + +UPDATE perspectives +SET working_group_id = NULL +WHERE source_type IN ('rss', 'email') + AND working_group_id IS NOT NULL; + +-- ============================================================================= +-- Done +-- =============================================================================