4.5 KiB
id, title, status, type, team, supporting_teams, roadmap_item, priority
| id | title | status | type | team | supporting_teams | roadmap_item | priority | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-183-review-global-ranking-implementation | Review global ranking implementation | pending | research | Analista |
|
foundation | high |
TASK-183-review-global-ranking-implementation - Review global ranking implementation
Goal
Review the current technical implementation of the new Ranking global section after TASK-180, TASK-181 and TASK-182, and document whether the delivered backend/frontend behavior matches the approved contract without implementing new functionality.
Context
Ranking was introduced as a dedicated public leaderboard flow separate from Stats. Before any follow-up changes, HLL Vietnam needs one focused technical review task that confirms the real route contract, the actual data sources, the frontend failure handling, the validation coverage and the navigation impact on the landing.
Preserve the current product identity: Spanish-speaking HLL Vietnam community, military/Vietnam/tactical/sober visual direction and controlled repository evolution.
Steps
- Read the listed files first.
- Compare
docs/global-ranking-page-plan.mdagainst the implemented backend/frontend behavior. - Verify the real global ranking endpoint contract:
- exact route
- supported parameters
- supported timeframes
- supported metric
- normalized limit behavior
- Confirm weekly and monthly ranking reads use the RCON materialized read model.
- Confirm annual ranking reads use persisted annual snapshots and do not recalculate on each public request.
- Verify Elo/MMR is not required by this flow and that Comunidad Hispana #03 was not reintroduced.
- Review frontend handling for:
- backend offline
- no data
- annual snapshot missing
- unsupported metric
- unsupported timeframe
- invalid limit
- Review whether
frontend/assets/js/ranking.jsduplicates logic fromfrontend/assets/js/stats.jsin a risky way or only reuses patterns safely. - Review whether
scripts/run-stats-validation.ps1coversRanking globalsufficiently or whether a future dedicated validation task is justified. - Confirm navigation from
frontend/index.htmltofrontend/ranking.htmldoes not break the landing flow. - Document findings, validation executed, open risks and any follow-up tasks instead of expanding scope.
Files to Read First
AGENTS.mdai/repo-context.mdai/architecture-index.mddocs/global-ranking-page-plan.mdfrontend/ranking.htmlfrontend/assets/js/ranking.jsbackend/app/routes.pybackend/app/payloads.pyscripts/run-stats-validation.ps1
Expected Files to Modify
ai/tasks/pending/TASK-183-review-global-ranking-implementation.md
Constraints
- Create findings only; do not implement fixes in this task.
- Do not execute product changes beyond the scoped technical review.
- Do not modify backend files.
- Do not modify frontend files.
- Do not modify docs outside the task outcome if a follow-up is needed.
- Do not create new features.
- Do not reactivate Elo/MMR.
- Do not reintroduce Comunidad Hispana #03.
- Keep the review aligned with the existing RCON-first architecture and the approved separation between
StatsandRanking.
Validation
Before completing the task ensure:
- the implementation was reviewed against
docs/global-ranking-page-plan.md - the real route contract for
GET /api/rankingwas documented from code, not assumed - weekly/monthly vs annual source behavior was verified from implementation files
- frontend error-state handling was reviewed from
ranking.htmlandranking.js - validation-script coverage was reviewed from
scripts/run-stats-validation.ps1 - landing navigation impact was checked from
frontend/index.html - no unrelated files were modified
git diff --name-onlymatches the expected scope- if no integration tests apply beyond the existing validation script, that limitation is documented explicitly
Outcome
Document:
- whether implementation matches the documented contract
- exact mismatches, if any
- whether the route contract is narrower or broader than the plan
- whether annual ranking is safely snapshot-backed
- whether any frontend failure state is missing or only partially handled
- whether validation coverage is sufficient for now
- any follow-up tasks required, keeping them small and technical
Change Budget
- Prefer fewer than 5 modified files.
- Prefer changes under 200 lines when feasible.
- Split the work into follow-up tasks if limits are exceeded.