Skip to content

feat(metadata): allow multiple objectifs for one dataset#4103

Draft
VincentCauchois wants to merge 10 commits intodevelopfrom
feat/allow-multiple-objectifs-for-one-dataset
Draft

feat(metadata): allow multiple objectifs for one dataset#4103
VincentCauchois wants to merge 10 commits intodevelopfrom
feat/allow-multiple-objectifs-for-one-dataset

Conversation

@VincentCauchois
Copy link
Copy Markdown
Member

@VincentCauchois VincentCauchois commented Apr 27, 2026

Ref #4102

  • Decide if it is OK to lose :
    • Database constraint to have at least 1 objective per dataset ;
    • Database default value ref_nomenclatures.get_default_nomenclature_value('JDD_OBJECTIFS')

@VincentCauchois VincentCauchois self-assigned this Apr 27, 2026
@VincentCauchois VincentCauchois added enhancement database frontend backend javascript Pull requests that update Javascript code python Pull requests that update Python code labels Apr 27, 2026
@VincentCauchois VincentCauchois force-pushed the feat/allow-multiple-objectifs-for-one-dataset branch from 84016ec to a614d56 Compare April 27, 2026 15:51
@VincentCauchois VincentCauchois linked an issue Apr 27, 2026 that may be closed by this pull request
3 tasks
@VincentCauchois VincentCauchois force-pushed the feat/allow-multiple-objectifs-for-one-dataset branch 2 times, most recently from ba04557 to 0ce67e2 Compare April 29, 2026 13:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.60%. Comparing base (0d51c74) to head (3895d74).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4103      +/-   ##
===========================================
+ Coverage    86.59%   86.60%   +0.01%     
===========================================
  Files          138      138              
  Lines        10881    10881              
===========================================
+ Hits          9422     9424       +2     
+ Misses        1459     1457       -2     
Flag Coverage Δ
pytest 86.60% <100.00%> (+0.01%) ⬆️

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.

@VincentCauchois VincentCauchois force-pushed the feat/allow-multiple-objectifs-for-one-dataset branch 18 times, most recently from 2e5ab79 to cef0c69 Compare April 30, 2026 15:04
- Finalize taking inspiration from references to "cor_acquisition_framework_objectif":
  - Update, if necessary, sample data SQL and Alembic files not refering to "cor_dataset_objectif"
    - "backend/geonature/migrations/data/imports/sample_data.sql"
    - "backend/geonature/migrations/versions/imports/a81f74d0a518_insert_import_sample_data.py"
    - "backend/geonature/tests/data/delete_sample_data.sql"
    - "contrib/occtax/backend/occtax/migrations/2a0ab7644e1c_occtax_sample_test.py"
    - "contrib/occtax/backend/occtax/migrations/cce08a64eb4f_insert_occtax_sample_data.py"
    - "contrib/occtax/backend/occtax/migrations/data/sample_data_test.sql"
    - "contrib/occtax/backend/occtax/migrations/data/sample_data.sql"
  - Take inspiration from "docs/data_model/gn_meta/cor_acquisition_framework_objectif.sql"
- Finalize getting rid of possibly outdated references, or taking inspiration from possibly still relevant ones, to "id_nomenclature_dataset_objectif":
  - "backend/geonature/migrations/data/core/meta.sql"
  - "backend/geonature/migrations/data/imports/sample_data.sql"
  - "backend/geonature/tests/data/sample_data.sql"
  - "contrib/gn_module_occhab/backend/gn_module_occhab/migrations/data/sample_data.sql"
  - "contrib/occtax/backend/occtax/migrations/data/sample_data_test.sql"
  - "contrib/occtax/backend/occtax/migrations/data/sample_data.sql"
  - "data/migrations/2.0.0beta4-to-2.0.0beta5.sql"
  - "docs/data_model/gn_meta/t_datasets.sql"
- Check for "docs/_static/2019-08-GN2-1-MCD.svg" which unexpectedly refers to af and ds objectif
- (?) Add missing backend and frontend tests
Verify it does not break frontend tests.
@VincentCauchois VincentCauchois force-pushed the feat/allow-multiple-objectifs-for-one-dataset branch from af66bf2 to 3895d74 Compare April 30, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend database enhancement frontend javascript Pull requests that update Javascript code python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rendre possible la saisie de plusieurs objectifs pour un JDD

1 participant