users: correct achievements lookup for parent planet users (fixes #10275) - #10274
users: correct achievements lookup for parent planet users (fixes #10275)#10274Mutugiii wants to merge 1 commit into
Conversation
The achievements page treated every non-local user as a child user, so users on the parent planet were looked up in child_users with an <name>@<planetCode> id instead of parent_users with an org.couchdb.user:<name> id, and their profile never loaded. Resolve the relationship first (missing planet code counts as local before comparing against configuration.parentCode), then pick the database and document id from it. Achievement document ids and avatar loading are unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017bvBBwBKLPRxMci11ctVqk
|
Warning Review limit reached
Next review available in: 49 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details鈿欙笍 Run configurationConfiguration used: Repository UI Review profile: QUIET Plan: Pro Plus Run ID: 馃搾 Files selected for processing (2)
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 |
Fixes #10275
parent_users/org.couchdb.user:<name>instead ofchild_users/<name>@<planetCode>configuration.parentCodeAvatar loading and achievement document IDs are unchanged.
https://claude.ai/code/session_017bvBBwBKLPRxMci11ctVqk