A feed an OPML drops keeps its subscribers and is scanned again in the same run #478

Closed
opened 2026-11-19 04:25:44 -08:00 by rays · 1 comment
Owner

On 2026-11-18 22:39 a scan's OPML sync dropped sciencedaily-latest-science-news ("dropped from the OPML with nothing downloaded; removed"). Two things went wrong:

  • Db::drop_managed deletes the feed and its entries but not its subscriptions rows.
  • The scan had already put the feed on its list of feeds due, so later in the same run it scanned it again and stored 60 items.

The result is a feed in no catalogue that people still subscribe to. All Subscriptions lists its items (it reads subscriptions), but the feed list leaves it out (it reads the catalogue). So the page has no title for it and shows no feed name, and sharing one of its items answers 404. Reported as ScienceDaily items in All Subscriptions with no feed name.

On 2026-11-18 22:39 a scan's OPML sync dropped sciencedaily-latest-science-news ("dropped from the OPML with nothing downloaded; removed"). Two things went wrong: * `Db::drop_managed` deletes the feed and its entries but not its `subscriptions` rows. * The scan had already put the feed on its list of feeds due, so later in the same run it scanned it again and stored 60 items. The result is a feed in no catalogue that people still subscribe to. All Subscriptions lists its items (it reads `subscriptions`), but the feed list leaves it out (it reads the catalogue). So the page has no title for it and shows no feed name, and sharing one of its items answers 404. Reported as ScienceDaily items in All Subscriptions with no feed name.
rays added the bug label 2026-11-19 04:25:44 -08:00
Author
Owner

Fixed on main in 6939fd1, 349426c and 4120bcd, deployed 2026-11-19:

  • drop_managed deletes the feed's subscriptions, and sync_group returns the ids it dropped so the scan skips them in the same run.
  • ipx rm unsubscribes everyone from a feed it removes from config.
  • Each start unsubscribes everyone from a feed the catalogue no longer has (drop_stray_subscriptions), unless the catalogue comes back empty.

The 41 leftover subscriptions already in production were deleted by hand: 40 of rays's and 1 of another account's. All came from the Hacker News top feeds OPML, which drops feeds daily. Six of them (ScienceDaily, The Guardian, Make, Derek Wessman, Rails at Scale, and one comments feed) were the items showing in All Subscriptions with no feed name.

Fixed on main in 6939fd1, 349426c and 4120bcd, deployed 2026-11-19: * `drop_managed` deletes the feed's subscriptions, and `sync_group` returns the ids it dropped so the scan skips them in the same run. * `ipx rm` unsubscribes everyone from a feed it removes from config. * Each start unsubscribes everyone from a feed the catalogue no longer has (`drop_stray_subscriptions`), unless the catalogue comes back empty. The 41 leftover subscriptions already in production were deleted by hand: 40 of rays's and 1 of another account's. All came from the Hacker News top feeds OPML, which drops feeds daily. Six of them (ScienceDaily, The Guardian, Make, Derek Wessman, Rails at Scale, and one comments feed) were the items showing in All Subscriptions with no feed name.
rays closed this issue 2026-11-19 04:45:49 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#478