Skip to content

PROD Release 08/05 - leaderboard data - #121

Merged
vas3a merged 15 commits into
masterfrom
develop
Aug 5, 2026
Merged

PROD Release 08/05 - leaderboard data#121
vas3a merged 15 commits into
masterfrom
develop

Conversation

@vas3a

@vas3a vas3a commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

PM-5719 - Add member payment dashboard data
PM-5703 - correct dashboard payment and participation data
PM-5653 - support leaderboard calculations
PM-5719 - Include projected member payments

jmgasper and others added 15 commits July 31, 2026 01:14
What was broken

The Reports Portal API returned only the original dashboards, so it could not supply monthly member payment values by type or by customer.

Root cause

There were no dashboard SQL queries, DTOs, service mappings, or export paths for the two member payment datasets.

What was changed

Added monthly payment totals by canonical payment type and by the top five clients plus Other Customers, including zero-filled ranges, aggregate and detail responses, CSV exports, Swagger metadata, and API documentation.

Any added/updated tests

Added and updated dashboard controller, service, and SQL tests for amount mapping, payment categories, customer ranking, zero filling, and CSV output.
PM-5719: Add member payment dashboard data
What was broken
Unique Members Paid omitted projected TaaS, task, challenge, and engagement payments until they reached PAID status, making monthly and all-time metrics disagree with Wallet Admin. Challenge participation counted legacy resource imports in the import month, producing an April 2026 registrant spike.

Root cause
The payment query filtered to PAID and grouped by payout date. The participation query grouped resource and submission creation timestamps independently, although imported resources do not preserve their historical registration dates.

What was changed
Count the latest non-cancelled payment record in its creation month while retaining the existing payment buckets and Topgear exclusion. Cohort supported challenges by their latest actual phase completion date, then count unique submitter resources and same-challenge/member non-deleted submissions in that cohort.

Any added/updated tests
Updated dashboard SQL regression coverage for projected payment status/version/date semantics, supported challenge completion cohorts, linked submission membership, and removal of import/submission timestamp grouping. All 35 dashboard tests, lint, and build pass; the repository-wide suite still has 21 pre-existing failures in unchanged SFDC and report-directory specs.
PM-5703: correct dashboard payment and participation data
…lculations

PM-5653 leaderboard calculations
What was broken

The member payment dashboards omitted owed and on-hold July payments, leaving only an incorrect $51 contest total and no TAAS or engagement values.

Root cause

Both dashboard queries required PAID status and grouped values by payout date, unlike the established dashboard and Wallet Admin convention of using current non-cancelled payments in their creation month.

What was changed

Updated both payment-value queries to include latest non-cancelled payment records and group gross member amounts by payment creation month. Updated the dashboard documentation to describe the corrected projection semantics.

Any added/updated tests

Updated dashboard SQL regression coverage to require creation-month and non-cancelled selection for both payment charts and to reject PAID/date-paid filtering.
PM-5719: Include projected member payments
…lculations

PM-5653 leaderboard calculations
…lculations

PM-5653 - Round leaderboard points
@vas3a
vas3a requested a review from jmgasper August 5, 2026 06:49
@vas3a
vas3a merged commit bec7cfc into master Aug 5, 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.

2 participants