fix: limiter les graphiques Perspectives à l'année N-1 (2025)#509
Merged
cyrilledaily merged 2 commits intomainfrom Feb 18, 2026
Merged
fix: limiter les graphiques Perspectives à l'année N-1 (2025)#509cyrilledaily merged 2 commits intomainfrom
cyrilledaily merged 2 commits intomainfrom
Conversation
Contributor
|
| ℹ️ Name | 🔗 Infos & links |
|---|---|
| 🌱 Deploying commit | 81aab80 |
| 👁️ Preview | Generating preview app... |
Les requêtes SQL n'avaient pas de borne haute sur l'année, laissant apparaître des données partielles de l'année en cours (2026) dans les graphiques. Toutes les requêtes (distributions de scores MP/Sub, volumes annuels) sont désormais limitées à CURRENT_YEAR - 1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
81aab80 to
ad94a3c
Compare
3 tasks
Collaborator
ReviewRebased on main — branch is now up to date, no conflicts. Code review — looks good ✓
No issues found. Ready to merge. |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Les requêtes SQL des graphiques Perspectives n'avaient pas de borne haute sur l'année, ce qui laissait apparaître des données partielles de l'année en cours (2026) dans les graphiques.
Fichier modifié :
fetchPerspectivesData.ts— 4 bornes<= CURRENT_YEARremplacées par<= CURRENT_YEAR - 1:fetchMpScoreDistribution)fetchSubScoreDistribution)fetchYearlyVolumes— CTEmp_yearly)fetchYearlyVolumes— CTEsub_yearly)La constante
CURRENT_YEAR = new Date().getFullYear()étant déjà en place, le filtre sera automatiquement mis à jour à chaque nouvelle année.Plan de test
/perspectivess'arrêtent à 2025🤖 Generated with Claude Code