fix(submissions): block cross-category website duplicates#2134
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR extends strict duplicate detection to include the ChangesWebsite URL Strict Duplicate Detection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
🔍 Maintainer advisory reviewReviewed 2 changed file(s) — two independent AI reviewers. This is an advisory review — it does not merge or close the PR. Suggested action: 🛠️ Request changes. (reviewers split: request changes / merge) Address the suggestions below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · No blocking issues spotted. |
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
Motivation
websiteUrl/website_url, which allowed canonical website collisions to avoid deterministic strict-duplicate closure.Description
websiteUrlandwebsite_urltoCROSS_CATEGORY_STRICT_URL_FIELDSinapps/submission-gate/src/duplicates.tsso canonical website signals are included in cross-category strict duplicate checks.it("treats same canonical website across different categories as a strict duplicate")totests/submission-gate-worker.test.tsthat validates atools/mcppair with the same normalizedwebsiteUrlis treated as a strict duplicate and appears in related matches.URL_FIELDS,strictDuplicateUrlsfiltering, or multi-entry catalog logic.Testing
pnpm exec vitest run tests/submission-gate-worker.test.ts -t "canonical website|canonical project|shared official docs|neutral duplicate submissions" --reporter=dot, which reported the test file passed and the selected tests succeeded (1 file passed, 4 tests passed, 92 skipped).git diff --checkto ensure there are no formatting or whitespace issues and it succeeded.apps/submission-gate/src/duplicates.tsandtests/submission-gate-worker.test.tsand the added tests exercise the fixed behavior.Codex Task
Summary by CodeRabbit
New Features
Tests