Repository navigation
Conversation
GET /api/v1/club/{organisme_id}/matches accepts date_from and date_to
(YYYY-MM-DD, inclusive). Matches outside the range are skipped using the
poule's known date before fetching their detailed rencontre, then the
detailed date is re-checked before pagination.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
📝 Description
Ajoute deux paramètres optionnels à
GET /api/v1/club/{organisme_id}/matches:date_frometdate_to(formatAAAA-MM-JJ, bornes incluses). On peut ainsi récupérer le calendrier d'une semaine sans télécharger toute la saison puis filtrer côté client.date_rencontredéjà présent dans la poule : leur fiche détaillée (get_rencontre_async) n'est pas chargée.date_from > date_torenvoie 400 et une date invalide renvoie 422, avec l'enveloppe d'erreur standard.Exemple sur données réelles : pour un club de 148 rencontres sur la saison,
?date_from=2026-10-12&date_to=2026-10-18renvoie 6 matchs, en ~10 s au lieu de ~35 s à froid. Le résultat est identique au filtrage manuel de la saison complète.🛠️ Type de changement
🔍 Comment cela a-t-il été testé ?
tests/unit/test_314_api_endpoints.py. Le premier vérifie le filtrage et l'absence d'appel détaillé hors période, le second les validations 400 et 422. Les deux échouent sans la modification.✅ Checklist de validation
[Unreleased]du CHANGELOG.ruff format --checkOK.ruff checkremonte 2 alertes B008 surdate_from/date_to, avec le même style= Query(...)que les autres paramètres. Ruff ne les signale que parce quedaten'est pas reconnu comme type immuable. Aucune autre nouvelle alerte.mypy srcOK.pre-commit run --all-filesOK.AGENTS.mdnon modifié.🤖 Generated with Claude Code