Skip to content

refactor: align request budgeting and renderer namespaces with gem updates - #1063

Merged
gildesmarais merged 3 commits into
chore/deps-update-incl-html2rssfrom
fix/auto-source-max-requests
Aug 11, 2026
Merged

refactor: align request budgeting and renderer namespaces with gem updates#1063
gildesmarais merged 3 commits into
chore/deps-update-incl-html2rssfrom
fix/auto-source-max-requests

Conversation

@gildesmarais

Copy link
Copy Markdown
Member

What changed

  • Removed max_requests override: Deleted AUTO_SOURCE_MAX_REQUESTS = 4 in SourceResolver.token_generator_input, allowing the web application to fully rely on the core gem's new dynamic baseline request budget.
  • Updated renderer configuration: Swapped Html2rss.configuration for Html2rss.defaults and RssBuilder::Stylesheet for FeedBuilder::Rss::Stylesheet in Renderer.

Why

  • The core html2rss gem now dynamically calculates budget slots (including sitemap sub-fetches), making the web layer's hardcoded override obsolete.
  • Propagates breaking core gem namespace and API updates (defaults and FeedBuilder::Rss::Stylesheet) to the web renderer to maintain compatibility.

Risk

  • Low. All 270 spec examples pass with local path gem resolution.

Review map

Review map: whole PR is small — start at app/web/feeds/source_resolver.rb.

Validation

  • Ran make ready (all linting, typescript checking, formatting, and rspec test suite passed).

@gildesmarais
gildesmarais force-pushed the fix/auto-source-max-requests branch 2 times, most recently from e1ba8cd to 4d6c2b9 Compare August 11, 2026 06:51
@gildesmarais
gildesmarais changed the base branch from main to chore/deps-update-incl-html2rss August 11, 2026 07:24
Remove AUTO_SOURCE_MAX_REQUESTS override in SourceResolver.token_generator_input. The web application now relies entirely on the core gem's dynamic budget slot calculations, ensuring correct scaling for sitemap scans and fallbacks. (Context: CONTEXT.md)
…paces

Update Renderer to use Html2rss.defaults instead of Html2rss.configuration, and FeedBuilder::Rss::Stylesheet instead of the retired RssBuilder::Stylesheet namespace. This aligns html2rss-web with the breaking API changes introduced in html2rss gem master. (Context: CONTEXT.md)
@gildesmarais
gildesmarais force-pushed the fix/auto-source-max-requests branch from 4d6c2b9 to c84dfe0 Compare August 11, 2026 07:26
@gildesmarais
gildesmarais merged commit 2c64ded into chore/deps-update-incl-html2rss Aug 11, 2026
9 of 11 checks passed
@gildesmarais
gildesmarais deleted the fix/auto-source-max-requests branch August 11, 2026 07:36
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