Repository navigation
refactor(fetcher): rename fortune / quote_of_day to random_* family - #158
Conversation
A bare `fortune` and `quote_of_day` left the catalog without a family prefix and made future siblings (`random_word`, `random_haiku`, `random_zen`, image-side `random_cat` already on #67) read as a mixed bag. Group them under a `random_*` family that names the actual mechanic — deterministic random pick from a bundled set, refreshed daily — rather than the cadence (`daily_*`) or the source brand. - `fortune` → `random_fortune` - `quote_of_day` → `random_quote` (drops the redundant `_of_day` suffix now that the prefix carries the rotation semantics) Templates `home_daily` / `home_minimal` updated. No alias for the old names — user configs that referenced `fetcher = "quote_of_day"` will need to be updated. BREAKING CHANGE: `fetcher = "quote_of_day"` and `fetcher = "fortune"` in user configs must be renamed to `random_quote` and `random_fortune` respectively. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
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 33 minutes and 49 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #158 +/- ##
=======================================
Coverage 78.37% 78.37%
=======================================
Files 116 116
Lines 21897 21897
=======================================
Hits 17161 17161
Misses 4736 4736
🚀 New features to boost your workflow:
|
Summary
Group bundled-rotating-text fetchers under a
random_*family prefix. Names the actual mechanic — deterministic random pick from a bundled set, refreshed daily — rather than the source brand or rotation cadence, and unifies withrandom_cat/random_word/random_haiku/random_zencandidates already on #67.fortune→random_fortunequote_of_day→random_quote(drops the redundant_of_daysuffix; the prefix carries the daily-rotation semantics)Why not
daily_*? The cadence is an implementation detail — selection could become per-open or per-hour later, and the name shouldn't lock that in.Why not bare names? A bare
fortuneandquote_of_daymade future siblings read as a mixed bag in the catalog.Migration
⚠ BREAKING for user configs that already referenced these fetchers:
No registry-level alias shipped — the old names render the standard
unknown fetcherplaceholder, which surfaces the rename clearly. Templates (home_daily/home_minimal) updated in this PR.Test plan
cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningscargo test(805 passed, 0 failed)quote_of_day/fortunereferences insrc/outside cookie content text🤖 Generated with Claude Code