web: Extract shared feed assembly into a FeedData DTO #104
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rosa/vernier!104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/shared-feed-assembly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The RSS and Atom feed handlers duplicated their profile resolution, per-post permalink construction, blog URL building, and content-type plumbing, with only the format-specific builders differing. That duplication had already produced drift (see #94).
Changes
FeedData/FeedEntryDTO with aFeedData::from_profileconstructor that resolves per-post permalinks, the blog URL, and the blog title/description once.get_user_rssandget_user_atomto resolve the profile, build aFeedData, and map it into their own crate's builders. A field belonging to an entry or the feed now has one home.feed_responsehelper.Output is unchanged — this is a pure restructuring.
format,clippy, andciall pass.Closes #101.