-
Notifications
You must be signed in to change notification settings - Fork 102
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
[IMPORT] Embed reusable import module into GeoNature core #2833
Conversation
f3fc016
to
e459ff4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2833 +/- ##
===========================================
+ Coverage 81.95% 83.86% +1.91%
===========================================
Files 86 122 +36
Lines 6965 9646 +2681
===========================================
+ Hits 5708 8090 +2382
- Misses 1257 1556 +299
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7338aea
to
d22bba0
Compare
5a98659
to
c2e427b
Compare
…lay to true. This is required for testing the dataset mapping field even though it is deactivated for the moment.
feat(import) : add check for habitat technical collection Co-authored-by: jacquesfize <jacques.fize@ecrins-parcnational.fr>
* feat(import, report): refact of the report design * feat(import, report): change/add condition to display certain element in the import report pdf * fix(import, report) : fix inversion between source and destination field + hide field not mapped
* feat(import): extending jdd checks by verifying its active status
#3209) * feat(import,check) : when an habitat is imported on existing station, we now check permissions on the latter * feat(occhab): change `Station.filter_by_scope()` signature, now return a whereclause
* feat(import) : add method to Destination to filter by a user's permission + change GET route /destinations/ * feat(model, Destination) : add an `has_instance_permission()` method to the `Destination` class * feat(import,destination): adapt `pnx-destination` component with the new route
…eneric link to destination module in the import report (#3207) * feat(report) link from import report to occhab, and filter on id_import --------- Co-authored-by: jacquesfize <jacques.fize@ecrins-parcnational.fr>
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.
Clairement plus propre avec un id_import
en synthèse !!
backend/geonature/migrations/versions/c49474d2f1f7_update_synthese_for_import.py
Outdated
Show resolved
Hide resolved
frontend/src/app/modules/imports/components/import_report/import_report.component.html
Outdated
Show resolved
Hide resolved
* complete migration from import V2 to V3 revision * change ORM query to SQL TEXT ones * wip * fix(migration): remove unused DELETE query
* feat(import): move import count to statistics * feat(import) : add migration to drop import_count * feat(migration): modify revision to include import_count transfer data to statistics + fix notification template revision * fix(test): impact the deplacement of `import_count` into `TImports.statistics` * feat(import,synthese): remove unused value computation + increase timeout for forntend test
…d in existing station + make `computing_bounding_box` generic (#3236) * feat(import, occhab) : Extend the bbox computation to habitat import in existing station * feat(test): add unit test for the occhab bbox computation * feat(import) : make `computing_bounding_box` generic * feat(doc): complete comments + rename variables -> `compute_bounding_box`
--------- Co-authored-by: jacquesfize <jacques.fize@ecrins-parcnational.fr>
46a4735
to
a487cfa
Compare
* feat(clean): parse queries to sqla2.0 style * feat(doc): add docstring * feat(import) : move occhab plot in a dedicated file * feat(model, import): add Marshmallow Schema for MappingTemplate * feat(import,report) : change title of the occhab plot * fix(import) : fix altitude bug * feat(import, report plot): clarify plot + debug missing plot in pdf report * fix(import, list) : correct typo in default mapping + add nb_line_valid in statistics + minor corrections in import list UI * fix(test) : apply name change to previously named column 'Voir la fiche du JDD' --------- Co-authored-by: Élie Bouttier <bouttier@users.noreply.github.com>
Reste à faire avant merge :
GeoNature/backend/geonature/core/gn_synthese/imports/actions.py
Line 240 in 5b73ada
technical_precision
: celui-ci devient obligatoire si le champsid_nomenclature_collection_technique
vaut 10 (« Autre, préciser ») [@Pierre-Narcisi] PR: Feat(import) add check and tests #3200 Exemple :GeoNature/backend/geonature/core/imports/checks/sql/nomenclature.py
Lines 136 to 151 in 5b73ada
display=False
) le fieldunique_dataset_id
(en attendant les colonnes virtuelles et la suppression de la sélection du jdd à l’étape 1) [@jacquesfize] PR feat (import) : hide jdd selection form #3206compute_bounding_box
> PR import: factorize bounding box #3184filter_by_scope
-> hook permettant de renvoyer un filtre SQL)resolve_import
(~has_instance_permission
)PR restantes :
Améliorations frontend :
Correspondance de valeurs : remplacer « null » par « pas de valeur » (en italique)(pas possible normalement)Juste avant de merge :
feat/import
À vérifier :
metaclass_resolver
si encore présent dans le code source)Non bloquant :
Pour le futur :
cd_hab
: code typo (cd_typo ou cd_table) + lb_code [issue à ouvrir]