generated from dataforgoodfr/d4g-project-template
-
Notifications
You must be signed in to change notification settings - Fork 51
Update limits for R471811 and ESA-metolachlore #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jereze
merged 3 commits into
main
from
feat/new-values-for-R471811-and-ESA-metolachlore
Aug 13, 2025
+47
−1,663
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Renommage + seuil ESA-métolachlore: OK, mais valider l’alignement côté données
Le passage à
sup_limite_qualite_sup_3
avec label “Concentration > 3 µg/L”, picto “warning” et couleur plus sévère#d94801
est cohérent et lisible. Point d’attention: si le backend ou la pipeline de classification envoient encoresup_valeur_sanitaire
pour cette sous-catégorie, les composants qui mappentresultat
->categoryDetails.resultats[resultValue]
risquent de ne plus trouver de correspondance (et donc pas de couleur/picto).sup_limite_qualite_sup_3
pour > 3 µg/L, et quesup_limite_qualite
couvre toujours 0,9–3 µg/L.Proposition de script pour vérifier rapidement les occurrences des clés dans le repo:
🏁 Script executed:
Length of output: 716
On dirait que
rg
n’aime pas le lookahead ! Retentons une recherche plus simple pour l’ancienne clé :🏁 Script executed:
Length of output: 1192
Vérifier et mettre à jour la prise en charge de la nouvelle clé
sup_limite_qualite_sup_3
Le script montre que l’ancienne clé
sup_valeur_sanitaire
est toujours largement utilisée dans la couche UI et dans le mapping des couleurs. Si le backend émet désormaissup_limite_qualite_sup_3
pour ESA-métolachlore > 3 µg/L, ces composants ne trouveront plus de correspondance et risquent d’afficher des états absents ou des erreurs.Fichiers à adapter :
statName
sur${period}_${category}_sup_valeur_sanitaire
"nb_sup_valeur_sanitaire"
nb_sup_valeur_sanitaire
Actions recommandées :
sup_limite_qualite_sup_3
et quesup_limite_qualite
reste 0,9–3 µg/L.sup_limite_qualite_sup_3
(et son préfixenb_
le cas échéant).🤖 Prompt for AI Agents