Skip to content

Conversation

@joshishiv4
Copy link
Owner

Fixes: #831

I've tested the basic functionality (unordered feeds + max batch size), but I haven't tested every case thoroughly (yet).

Self-review checklist
  • Self-reviewed the changes for clarity and maintainability
    (variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

  • Explains differences from previous plans (e.g., issue description).
  • Highlights technical choices and bugs encountered.
  • Calls out remaining decisions and concerns.
  • Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

  • Each commit is a coherent idea.
  • Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

  • Visual appearance of the changes.
  • Responsiveness and internationalization.
  • Strings and tooltips.
  • End-to-end functionality of buttons, interactions and flows.
  • Corner cases, error conditions, and easily imagined bugs.

Recreated from zulip/python-zulip-api#895

rss-bot had 2 different feed_file variables:
1. The user provided file with the list of feed URLs.
2. The file for each feed URL, to store the feed entries' hashes.

To clearly differentiate between them, the latter has been renamed to
feed_hashes_file.
Previously, it was being set for every entry.
Renamed the OLDNESS_THRESHOLD constant that was being used for the
same, to match the name of the newly added option.
We will be using entry time for sorting entries in the following
commits.
By splitting the logic into two loops - one for processing all the
entries in the feed, and another to post only the latest ones in
chronological order.

Instead of tracking new_hashes in memory while processing the feed file,
we track unhashed_entries now, since we will not be hashing all the
entries, only the ones that we post.

Fixes #831.
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.

3 participants