-
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][OCCHAB] add default mapping #3127
base: feat/import
Are you sure you want to change the base?
Conversation
22e3600
to
3cc485f
Compare
786a656
to
f861f43
Compare
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.
Pas de modèles dans les migrations !
id_occhab_mapping = session.execute( | ||
sa.insert(MappingTemplate) | ||
.values( | ||
label="OccHab GeoNature", |
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.
Occhab
id_mapping_sinp = session.execute( | ||
sa.insert(MappingTemplate) | ||
.values( | ||
label="Données Habitats SINP", |
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.
Je capte pas bien à quoi correspond cet autre mapping ?
Mais de ce que je comprends, il faudrait plutôt le nommer "Occurrences d'habitats SINP" ?
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.
En sois OK mais plus simple de récupérer les tables par réflexivitées
@@ -8,9 +8,12 @@ | |||
|
|||
import warnings | |||
from alembic import op | |||
from geonature.core.imports.models import Destination, FieldMapping, MappingTemplate | |||
from geonature.core.imports.models import Destination |
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.
from geonature.core.imports.models import Destination |
dcdde5a
to
d64cff9
Compare
This PR propose to include new mapping dedicated to the OccHab destination.