Skip to content

Navigation Menu

Sign in
Sign up

fix: expose prefer_feed_title through config.py/util.py, not just the constructor - #144

Open
Smengerl wants to merge 1 commit into
j6k4m8:master from
Smengerl:fix/rss-prefer-feed-title-config-wiring
Open

fix: expose prefer_feed_title through config.py/util.py, not just the constructor #144
Smengerl wants to merge 1 commit into
j6k4m8:master from
Smengerl:fix/rss-prefer-feed-title-config-wiring

Conversation

@Smengerl

@Smengerl Smengerl commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

#129 added RSSFeedStoryProvider(prefer_feed_title=...) and described it as something callers could "opt in per source" - the same language used for every other per-source RSS option, all of which are set via the config file. But config.py's "rss" schema never listed prefer_feed_title as an optional field, and util.py's construct_story_providers_from_source_configs never passed it through even if it somehow got past validation.

Concretely: {"type": "rss", ..., "prefer_feed_title": true} in a config file raises "Unknown field(s) in source #1: prefer_feed_title" - the option is unreachable from the CLI/config path #129's own description promised, only usable by constructing RSSFeedStoryProvider directly in Python.

Wire it through the same way byline/body_source already are: add it to the "rss" schema's optional fields, validate it as a bool, and add it to util.py's allow-list.

Testing

  • New tests: config accepts/validates the field, and construct_story_providers_from_source_configs actually passes it through to the constructor (the exact gap this closes).
  • Full suite: 101 passed.

... constructor
j6k4m8#129 added RSSFeedStoryProvider(prefer_feed_title=...) and described it as
something callers could "opt in per source" - the same language used for
every other per-source RSS option, all of which are set via the config
file. But config.py's "rss" schema never listed prefer_feed_title as an
optional field, and util.py's construct_story_providers_from_source_configs
never passed it through even if it somehow got past validation.
Concretely: {"type": "rss", ..., "prefer_feed_title": true} in a config
file raises "Unknown field(s) in source #1: prefer_feed_title" - the
option is unreachable from the CLI/config path j6k4m8#129's own description
promised, only usable by constructing RSSFeedStoryProvider directly in
Python.
Wire it through the same way byline/body_source already are: add it to
the "rss" schema's optional fields, validate it as a bool, and add it to
util.py's allow-list.
Smengerl force-pushed the fix/rss-prefer-feed-title-config-wiring branch from 0b62ae1 to 66bdf8e Compare August 18, 2026 19:46
Smengerl added a commit to Smengerl/goosepaper-logicpuzzles that referenced this pull request Aug 21, 2026
Marks the PRs actually merged upstream since the table was last
touched (j6k4m8#118-120, j6k4m8#122, j6k4m8#126, j6k4m8#129, j6k4m8#130, j6k4m8#134, j6k4m8#135, j6k4m8#137, j6k4m8#141),
notes j6k4m8#123 as closed in favor of feature/puzzle-explanations, and
adds the four rows that were missing entirely: j6k4m8#141
(fix/rss-absolute-url-wrapper-leak, merged), j6k4m8#142
(fix/rss-image-embedding, closed in favor of j6k4m8#145), j6k4m8#144
(fix/rss-prefer-feed-title-config-wiring, open), and j6k4m8#145
(feature/render-time-image-sizing, open).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /