feat(quote): remove per-article and daily quote count limits#4867
Merged
Conversation
Users may post any number of quotes now. The content rules still apply: 80-char excerpt cap, substring match, ARR author-only, campaign-only, and same-quote dedup. Drop the now-dead QUOTE_DAILY_LIMIT / QUOTE_PER_ARTICLE_LIMIT and the matching test assertions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4867 +/- ##
===========================================
- Coverage 73.57% 73.57% -0.01%
===========================================
Files 1084 1084
Lines 22229 22219 -10
Branches 4896 4894 -2
===========================================
- Hits 16356 16347 -9
+ Misses 5392 5391 -1
Partials 481 481 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
拿掉金句的數量限制(搭配 web PR 的金句牆改版)。base = develop。
改動
putQuote的兩個數量上限:同篇上限(QUOTE_PER_ARTICLE_LIMIT)、每日上限(QUOTE_DAILY_LIMIT)quote.test.ts:原本的 cap 測試改成「移除後可一直貼」驗證
tsc --noEmit綠