Skip to content
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

[IMPORTV3] Check Import Occhab #3077

Closed
wants to merge 485 commits into from
Closed

[IMPORTV3] Check Import Occhab #3077

wants to merge 485 commits into from

Conversation

jacquesfize
Copy link
Contributor

@jacquesfize jacquesfize commented May 28, 2024

duplicates #3019

What's done

  • Debug the mapping field form
  • Refactorisation of checks in Occhab
    • add docstring and type annotations
    • split the check_transient_data in multiple methods
    • add checks for boolean typed data columns
    • add check to verify consistency between differents row for one entity
    • add the possibility to generate an uuid based on a id_source in generate_missing_uuid()
  • Rename geometry related functions named geography_xxx by "geometry_xxx"
  • integrate inter-field requirements in the jsonschema in the field mapping creation/update routes
  • A mapping between columns (file > db) can now be removed in the update
  • Debug the entity count
  • Error Code are now available in an enum ImportCodeError

TODO

  • Update existing test file --> refresh error columns
  • Complete existing test
  • Debug un-mapping action on the UI between form for different entities
  • clean the code and the branch history
  • indicate in PR changes brought to init_rows and generate_missing_uuid + change in SyntheseMixin+OcchabMixin !!!
  • Re-enable the check parent entity
    • drop query at the beginning of check_transient_data
    • re-enable check_parent_entity in check_transient_data
    • restore method in parent.py
  • Move init_rows_validity, check_orphan_rows in check_transient_data (in synthese mixin and occhab mixin)
  • restore mapping.update(request.json)
  • Create an Enum for all error code
  • integrate @bouttier PR : [IMPORT] Feat/occhab check review #3120
  • integrate @Pierre-Narcisi PR : [IMPORT] Feat/required #3119
  • Empêcher de supprimer un import si une station importée contient des habitats saisie manuellement afin de ne pas perdre ces derniers (lever une 400 avec un message expliquant qu’il faut manuellement supprimer les habitats suivants en donnant leur ids) -> [IMPORT] Safe deletion of muli-entities import #3151
  • Linéariser les migrations alembic
  • Fonctionnel mais non conforme aux discussion : lorsqu’une station est dupliquée, les erreurs ne sont levées que sur la première occurrence de la station et non pour l’ensemble des lignes.
  • Supprimer la CI sur les branches de dev
  • [Doublons UUID ] erreur silencieuse si doublons sur uuid gn_module_import#459 -> fix(import): per dataset uuid check #3152
  • corrections des tests frontend

edelclaux and others added 3 commits July 25, 2024 16:50
fix: remove import_count from improt description

feat: add observation_count in synthese statistics

add a todo

feat: update line imported display in import list

feat: update line imported display in import report

fix: "Observations" -> "lignes"

feat(import): setup frontend / e2e tests

fix frontend test
…rt file

- Revision alembic to add column unique_dataset_id and src_unique_dataset_id
- Add into bib_fields and into cor_entity_fields
- change the model Synthese Geonature to add unique_dataset_id

Reviewed-by: andriacap

fix: change type of "eng_label" and "desc_label"

In database these two fields are nullable then
change type to allow "None" value

Reviewed-by: andriacap

fix(test): errors with unique_dataset_id

Fix errors based on adding unique_dataset_id

Reviewed-by: andriacap

fix: change revision id (after rebase feat/import)

Reviewed-by: andriacap

fix: nomenclature raise load error

Reviewed-by: andriac

refact: test synthese import jdd

Based on Elie's review

Reviewed-by: andriac

add missing line of code in synthese mixin
update RefGeo to 1.5.3

fix revision

fix rebase develop

fix package lock
This allows to add an habitat without requiring to set the field value as database default value will be used.
Prohibit deletion of import with stations including habitats not originating from the same import.
@bouttier bouttier changed the base branch from feat/import to develop August 14, 2024 13:36
@bouttier
Copy link
Contributor

Voir #2833

@bouttier bouttier closed this Aug 14, 2024
@bouttier bouttier deleted the feat/occhab-check branch August 14, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: En cours
Development

Successfully merging this pull request may close these issues.

[IMPORT] Contrôle de données pour la destination occhab
6 participants