feat: community have/want enrichment for release rarity scoring#293
Merged
SimplicityGuy merged 12 commits intomainfrom Apr 11, 2026
Merged
feat: community have/want enrichment for release rarity scoring#293SimplicityGuy merged 12 commits intomainfrom
SimplicityGuy merged 12 commits intomainfrom
Conversation
Design for fetching Discogs community.have/want counts via REST API to add a 6th "collection prevalence" rarity signal (weight 0.20). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8-task plan covering schema, scoring function, signal integration, enrichment endpoint, and pipeline updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…eights (#206) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…#206) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…evalence (#206) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…nce (#206) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add compute_and_store_community_enrichment function and wire it into run_all_computations before release_rarity so community counts are fresh when rarity scores are computed. Update tests to cover 7 insight types and fix mock tuple width for collection_prevalence column. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix INTERVAL parameterization using make_interval() instead of string interpolation inside SQL literal - Fix 429 retry logic: use inner while loop so rate-limited releases are retried instead of silently skipped - Update module docstring from 5-signal to 6-signal - Add exc_info=True to community counts loading warning for debuggability Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Contributor
Contributor
Contributor
Contributor
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.
Summary
Closes #206
GET /api/internal/insights/community-enrichment) that fetchescommunity.have/community.wantfrom the Discogs REST API for releases in user collections/wantlistsinsights.community_counts) and mirror to Neo4j Release node propertiesChanges
insights.community_countstable,collection_prevalencecolumn oninsights.release_raritycompute_collection_prevalence_score()with log-scale thresholds (0→95, 10k+→10) and want-pressure bonusTest plan
🤖 Generated with Claude Code