Skip to content

PM-5221: show Data Science Challenge stats#1940

Merged
jmgasper merged 12 commits into
ai-ratingsfrom
PM-5221
Jun 15, 2026
Merged

PM-5221: show Data Science Challenge stats#1940
jmgasper merged 12 commits into
ai-ratingsfrom
PM-5221

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken
The previous API fixes persisted and returned Data Science Challenge stats under DATA_SCIENCE.Challenge, but the profile achievements UI only considered DATA_SCIENCE.MARATHON_MATCH for the Data Science track. After a Data Science Challenge completed, the main profile rating could increase while the Member Stats card and drill-down path still showed the older Marathon Match rating/history.

Root cause (if identifiable)
The active-track mapper hardcoded Data Science to Marathon Match and SRM only. It ignored the Challenge subtrack key now produced by member-api for Data Science Challenge ratings/history.

What was changed
Added DATA_SCIENCE.Challenge to the profile stats and history models, included it as an active Data Science subtrack, and changed the Data Science summary card to use the strongest visible Data Science subtrack rating instead of always using Marathon Match.

Any added/updated tests
Added getActiveTracks coverage for a member with Data Science Challenge and Marathon Match stats to verify the Challenge subtrack is included and its newer rating drives the Data Science summary.

vas3a and others added 11 commits June 10, 2026 11:36
PM 5120 - Cleanup Talent Search from Platform-UI
What was broken
The previous API fixes persisted and returned Data Science Challenge stats under DATA_SCIENCE.Challenge, but the profile achievements UI only considered DATA_SCIENCE.MARATHON_MATCH for the Data Science track. After a Data Science Challenge completed, the main profile rating could increase while the Member Stats card and drill-down path still showed the older Marathon Match rating/history.

Root cause (if identifiable)
The active-track mapper hardcoded Data Science to Marathon Match and SRM only. It ignored the Challenge subtrack key now produced by member-api for Data Science Challenge ratings/history.

What was changed
Added DATA_SCIENCE.Challenge to the profile stats and history models, included it as an active Data Science subtrack, and changed the Data Science summary card to use the strongest visible Data Science subtrack rating instead of always using Marathon Match.

Any added/updated tests
Added getActiveTracks coverage for a member with Data Science Challenge and Marathon Match stats to verify the Challenge subtrack is included and its newer rating drives the Data Science summary.
@jmgasper jmgasper requested a review from kkartunov as a code owner June 15, 2026 02:03
@jmgasper jmgasper changed the base branch from dev to ai-ratings June 15, 2026 03:46
# Conflicts:
#	src/apps/profiles/src/hooks/useFetchActiveTracks.tsx
#	src/libs/core/lib/profile/user-stats.model.ts
@jmgasper jmgasper merged commit c50a0c5 into ai-ratings Jun 15, 2026
4 checks passed
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.

3 participants