Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/legal-islands-kick.md
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 20 additions & 0 deletions server/src/db/migrations/169_remove_rss_from_editorial.sql
Original file line number Diff line number Diff line change
@@ -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
-- =============================================================================