Skip to content

fix(api): Weekly Rotation underground weight, coin metadata handle, comment cleanup - #1048

Merged
dylanjeffers merged 2 commits into
mainfrom
fix/review-cleanup-aug-sep
Sep 24, 2026
Merged

dylanjeffers merged 2 commits into
mainfrom
fix/review-cleanup-aug-sep

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Logic fixes:

  • Weekly Rotation dedup kept the trending source for tracks in both candidate sets (ORDER BY source ASC sorts trending first), so the 1.15 underground weight almost never applied. It now prefers underground. The new test pins a week where the trending-only track would otherwise win by about 1%. It fails before the fix.
  • Coin metadata joined users without is_current, so a user with a superseded row could get their old @handle in the generated description. The join now filters on is_current, and the test adds a non-current row.
  • Swagger: suggested-follows now says it draws on playlists too (no behavior change). Weekly Rotation now says the rollover is Wednesday 00:00 UTC, not the ISO week boundary.

Comment cleanup: shortened long or narrative comments added with suggested-follows, Weekly Rotation, coin metadata, is_streamable enforcement and owner downloads. No code changes in that commit.

Tests: go test ./api/... passes except TestSearch, which needs Elasticsearch on :21401 and isn't running locally. gofmt -l is clean on the changed files.

🤖 Generated with Claude Code

dylanjeffers and others added 2 commits September 23, 2026 16:47
A track in both the trending and underground candidate sets kept the
'trending' row because DISTINCT ON sorted source ascending, so the 1.15
underground weight almost never applied.

Also join only the current users row in coin metadata so the default
description cites the current handle, and correct the swagger text for
suggested-follows (includes playlists) and the Weekly Rotation rollover
(Wednesday 00:00 UTC).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ints

Trim comments added with suggested-follows, Weekly Rotation, coin metadata,
is_streamable enforcement and owner downloads to plain statements of what
the code does and why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dylanjeffers
dylanjeffers merged commit e7ce872 into main Sep 24, 2026
2 checks passed
@dylanjeffers
dylanjeffers deleted the fix/review-cleanup-aug-sep branch September 24, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant