Skip to content

fix(dedup): extend TTL to ~5 years so upgrades never re-notify or re-appear in roundup#111

Merged
retardgerman merged 1 commit into
devfrom
fix/dedup-ttl-and-log
May 12, 2026
Merged

fix(dedup): extend TTL to ~5 years so upgrades never re-notify or re-appear in roundup#111
retardgerman merged 1 commit into
devfrom
fix/dedup-ttl-and-log

Conversation

@retardgerman
Copy link
Copy Markdown
Contributor

@retardgerman retardgerman commented May 12, 2026

Problem

Sonarr/Radarr quality upgrades re-triggered Discord notifications and reappeared in the Weekly Roundup as new content after the dedup windows expired. sentNotifications expired after 7 days, roundup-first-seen after 14 days — an upgrade landing past those windows was treated as a brand-new item. Both maps already use stable identity keys (TMDB ID, SeriesId+S/E) that survive file replacement; the only thing broken was the TTL.

Additionally, the [DUPLICATE CHECK] log line checked debouncedSenders with the raw SeriesId instead of the stable seriesKey, so it always reported has debouncer: false for keyed series regardless of actual state.

Fix

  • sentNotifications TTL extended from 7 days to ~5 years
  • roundup-first-seen TTL extended from 14 days to ~5 years
  • [DUPLICATE CHECK] log now uses seriesKey instead of SeriesId

AI-assisted documentation. Code logic manually verified.

…appear in roundup

Previously sentNotifications expired after 7 days and roundup-first-seen
after 14 days. A Sonarr/Radarr quality upgrade landing after those windows
was treated as a brand-new item. Both windows are now ~5 years, which is
effectively permanent for any realistic install lifetime.

Also fixes the [DUPLICATE CHECK] log line that was checking debouncedSenders
with raw SeriesId instead of the stable seriesKey, causing it to always
report `has debouncer: false` for keyed series.
@retardgerman retardgerman merged commit 623df51 into dev May 12, 2026
2 checks passed
@retardgerman retardgerman deleted the fix/dedup-ttl-and-log branch May 12, 2026 10:39
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.

1 participant