Skip to content

Conversation

@andriacap
Copy link
Contributor

Cette PR propose une implémentation de nouveaux champs dans la configuration du module monitoring afin de pouvoir filtrer sur les champs additionnels qui sont envoyé dans la synthese .

Les développements proposés permettent d'utiliser le fichier observation.json de chaque protocole pour pouvoir enrichier les filtres que l'on souhaite afficher dans le module de synthèse.

Une explication plus détaillée a été rédigée ici dans le dépot de GeoNature : PnX-SI/GeoNature#3662 .

Les développements proposés peuvent certainement être améliorés. Je suis disponible pour discuter , échanger et ouvert à toute suggestion d'amélioraiton . Vous pouvez tester les développements en utilisant les deux branches suivantes liées à la PR coté GeoNature :

Ainsi que la branche liée à cette PR coté monitoring .

- Add dynamic_form_def for each protocol
- Call config for each protocol and get all fields from observation config (only observation because of information send to synthese)
- Enrich function allow to merge config monitoring dynamic_form_def and observation.json config

Reviewed-by: @acapai
- remove route _internal/modules instead use get_modules function
- add parameters in config example and in conf_schema --> allow to display conditionnaly advanced filters

Reviewed-by: @acapai
@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e9dffce) to head (9a013c3).
⚠️ Report is 5 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #472   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            4         4           
=========================================
  Hits             4         4           
Flag Coverage Δ
pytest 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant