Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backup feeds for RSS #167

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Add backup feeds for RSS #167

merged 1 commit into from
Dec 23, 2024

Conversation

djdefi
Copy link
Owner

@djdefi djdefi commented Dec 23, 2024

Add backup feeds to be used if primary feeds are down or unresponsive.

  • Modify rss_urls method in render.rb to include backup feeds from rss_backup_urls method.
  • Add rss_backup_urls method in render.rb to fetch backup feeds from RSS_BACKUP_URLS environment variable, with default backup feed https://calmatters.org/feed/.
  • Update feed method in render.rb to switch to backup feeds if primary feeds fail after retry.
  • Update README.md to include instructions for setting up backup feeds using RSS_BACKUP_URLS environment variable.
  • Add tests in test/render_test.rb to verify the functionality of backup feeds.

For more details, open the Copilot Workspace session.

Add backup feeds to be used if primary feeds are down or unresponsive.

* Modify `rss_urls` method in `render.rb` to include backup feeds from `rss_backup_urls` method.
* Add `rss_backup_urls` method in `render.rb` to fetch backup feeds from `RSS_BACKUP_URLS` environment variable, with default backup feed `https://calmatters.org/feed/`.
* Update `feed` method in `render.rb` to switch to backup feeds if primary feeds fail after retry.
* Update `README.md` to include instructions for setting up backup feeds using `RSS_BACKUP_URLS` environment variable.
* Add tests in `test/render_test.rb` to verify the functionality of backup feeds.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/djdefi/rss-firehose?shareId=XXXX-XXXX-XXXX-XXXX).
@djdefi djdefi merged commit a417ae3 into main Dec 23, 2024
4 of 5 checks passed
@djdefi djdefi deleted the add-backup-feeds branch December 23, 2024 20:57
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