Skip to content

Use hash-based change detection for feeds and entries - #433

Merged
lemon24 merged 4 commits into
lemon24:masterfrom
rvcreationworld:issue-431
Nov 15, 2026
Merged

lemon24 merged 4 commits into
lemon24:masterfrom
rvcreationworld:issue-431

Conversation

@rvcreationworld

Copy link
Copy Markdown
Contributor

Fixes #431

Summary of Changes:

  • Unified change detection: Removed redundant and conflicting timestamp checks (new.updated != old.updated) from both should_update_feed() and should_update_entry().
  • Eliminated RSS lastBuildDate false-positives: Feeds with fluctuating lastBuildDate timestamps no longer trigger misleading update comparisons when actual content hasn't changed.
  • Entry hash consistency: Removed 'updated' from EntryData._hash_exclude_ so entry timestamp changes are naturally captured via the hash mechanism without bypassing the hash update limits.
  • Test suite: Updated hash stability assertion in tests/test_reader.py. All 2,200+ unit tests continue to pass cleanly.

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.14%. Comparing base (4a539ff) to head (2be4b10).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #433      +/-   ##
==========================================
- Coverage   94.15%   94.14%   -0.01%     
==========================================
  Files         110      110              
  Lines       14190    14181       -9     
  Branches     1041     1039       -2     
==========================================
- Hits        13360    13351       -9     
  Misses        752      752              
  Partials       78       78              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lemon24 lemon24 left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also remove FeedForUpdate.updated and EntryForUpdate.updated (cleaning up the hash logic was specifically so we can remove them). (This also entails updating the relevant queries in reader._storage._feeds and reader._storage._entries.)

Thank you!

Comment thread src/reader/_update/__init__.py Resolved
@lemon24
lemon24 merged commit 0dfb93c into lemon24:master Nov 15, 2026
21 checks passed
@lemon24

lemon24 commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Merged, thank you for the PR!

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.

Remove FeedForUpdate / EntryForUpdate .updated attribute

2 participants