Repository navigation
feat(fetcher): add reddit public listing fetchers - #156
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 44 minutes and 52 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Ship OAuth-free reddit fetchers for subreddit posts, user submissions, and user comments with list_links-friendly output and resilient request profiles for unstable endpoint behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
39a38ab to
d018165
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
==========================================
+ Coverage 78.16% 78.46% +0.29%
==========================================
Files 113 121 +8
Lines 21378 22499 +1121
==========================================
+ Hits 16711 17654 +943
- Misses 4667 4845 +178
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Mirrors the hackernews/ layout: shared client/listing in client.rs, shared post DTO + rendering in common.rs, one fetcher per file. Drops the single-URL fetch_listing_with_bases abstraction and widens Post.score to i64 so heavily-downvoted posts deserialize cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adds tests for the parts that were previously untested or thin: render_posts across all three shapes (with empty input, missing fields, permalink fallback), Post / Comment deserialization against realistic Reddit envelopes, listing path generation (only `t=` for top), the comment_link composer, sample_*_body shape matrix, multi-byte truncate, and Options::default for each fetcher. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Summary
reddit_*fetcher family undersrc/fetcher/reddit/, mirroring thehackernews/module layout (client / common / one fetcher per file)reddit_subreddit_posts(type = top|hot|new|rising, withperiodfortop)reddit_user_postsandreddit_user_comments, allSafety::Safe(host fixed, names normalized to[A-Za-z0-9_-])LinkedTextBlock/TextBlock/Entries; falls back to a per-shape "reddit unavailable" body on transient errorsTest plan
Related
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]