Skip to content

Prod deploy - April 2026#75

Merged
jmgasper merged 23 commits intomasterfrom
develop
Apr 9, 2026
Merged

Prod deploy - April 2026#75
jmgasper merged 23 commits intomasterfrom
develop

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 9, 2026

himaniraghav3 and others added 23 commits March 25, 2026 20:18
PM-4305 Remove photo url check for completed profiles
PM- 4491  Include first name last name in challenge reports
What was broken
Marathon Match challenge exports in the new challenge reports only exposed provisionalScore and finalRank. When a challenge only had final review scores for some members, those rows exported with blank score cells and no finalScore column even though the ranking logic already had access to final scores.

Root cause (if identifiable)
The earlier PM-4151 follow-up on develop reshaped Marathon Match rows to publish only provisionalScore and finalRank. The SQL still loaded final review scores for effective ranking, but the report queries and formatter never projected finalScore into the exported record shape.

What was changed
Added finalScore to the Marathon Match challenge report DTO and formatter output.
Updated the submitters, valid-submitters, and winners SQL to emit rounded finalScore values while preserving the existing effective-rank ordering and tie-break behavior.
Updated the challenge report catalog descriptions to document provisionalScore and finalScore availability.
Included the repo lint auto-format on one existing conditional in topcoder-reports.service.ts.

Any added/updated tests
Added ChallengesReportsService regression tests covering Marathon Match submitter and winner exports plus the unchanged standard challenge submissionScore shape.
The new challenge report spec passes. The repo-wide pnpm test command still fails in unrelated pre-existing SFDC specs on this branch.
What was broken
Marathon Match challenge exports in the new challenge reports only exposed provisionalScore and finalRank. When a challenge only had final review scores for some members, those rows exported with blank score cells and no finalScore column even though the ranking logic already had access to final scores.

Root cause (if identifiable)
The earlier PM-4151 follow-up on develop reshaped Marathon Match rows to publish only provisionalScore and finalRank. The SQL still loaded final review scores for effective ranking, but the report queries and formatter never projected finalScore into the exported record shape.

What was changed
Added finalScore to the Marathon Match challenge report DTO and formatter output.
Updated the submitters, valid-submitters, and winners SQL to emit rounded finalScore values while preserving the existing effective-rank ordering and tie-break behavior.
Updated the challenge report catalog descriptions to document provisionalScore and finalScore availability.
Aligned the new challenge report regression spec with the current develop branch export shape, including firstName and lastName fields.
Included the repo lint auto-format on one existing conditional in topcoder-reports.service.ts.

Any added/updated tests
Added ChallengesReportsService regression tests covering Marathon Match submitter and winner exports plus the unchanged standard challenge submissionScore shape on the current export record format.
Verified pnpm lint, the new challenge report spec, and pnpm build on this branch.
The repo-wide pnpm test command still fails in unrelated pre-existing SFDC specs on the current develop base.
PM-4151: add MM final scores to challenge exports
What was broken
The PM-4151 challenge export regression spec on current develop still asserted the older export shape without firstName and lastName, so the focused challenge report test failed even though the Marathon Match finalScore export fix had already been merged.

Root cause (if identifiable)
The earlier follow-up branch updated the regression spec for the current export shape, but that spec change never landed on top of the develop branch after firstName and lastName were added to challenge user exports.

What was changed
Updated the challenge report regression fixtures and expectations to include firstName and lastName for Marathon Match and standard challenge exports.
Kept the follow-up scoped to the regression coverage only because the functional MM finalScore export fix is already present on develop.

Any added/updated tests
Updated src/reports/challenges/challenges-reports.service.spec.ts to assert the current export columns.
Verified pnpm lint, pnpm test --runInBand src/reports/challenges/challenges-reports.service.spec.ts, and pnpm build on this branch.
The full pnpm test --runInBand suite still fails in unrelated pre-existing SFDC specs on the current develop base.
PM-4151: align challenge export regression spec with names
What was broken
Marathon Match submitter, valid submitter, and winner exports could leave finalScore blank when a final score existed only on the reviews.submission record. QA still reported blank score columns in production for those cases.

Root cause
The challenge export SQL only projected final_score_raw from the latest non-provisional reviewSummation row even though the surrounding scoring logic already treats submission.finalScore as a valid fallback source.

What was changed
Updated the three Marathon Match challenge export queries to use COALESCE(final_review.aggregateScore, submission.finalScore) for final_score_raw so the export keeps finalScore populated when review summary rows are absent.

Any added/updated tests
Added a regression spec that loads the submitters, valid-submitters, and winners SQL files and asserts they all preserve the submission.finalScore fallback.
PM-4151: add MM final scores to challenge exports
PM-4151: fallback MM export final scores to submission data
@jmgasper jmgasper merged commit c2ba748 into master Apr 9, 2026
6 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