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

[IMPORT] Intégrer les champs d'import lors de l'installation d'un protocole #398

Draft
wants to merge 36 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
92e2d7a
feat(version): change VERSION file
jacquesfize Dec 13, 2024
b4686cc
feat: wip install import monitoring
Nov 22, 2024
0a37ecd
feat: wip Add bib_fields insertion for monitoring module
Nov 28, 2024
dc606b0
feat: wip Add module import bib functionality
Nov 29, 2024
09b9646
feat: wip create a revision for the t_import table, add cor_entity_fi…
Dec 16, 2024
a7f7156
feat: handle type_widget for postgresql type
Dec 19, 2024
01acb24
feat: update module monitoring code retrieval to use dynamic module_code
Dec 19, 2024
af6ebcc
[Frontend] Correction modification des géomatrie lors de l'édition (…
amandine-sahl Dec 13, 2024
f07279e
Release 1.0.0 (#382)
amandine-sahl Dec 13, 2024
dadadc6
Pytest : run on branch main, hotfixes, develop
amandine-sahl Dec 13, 2024
1207d28
Release 1.0.0 date
amandine-sahl Dec 13, 2024
08b2af0
feat: wip install import monitoring
Nov 22, 2024
fd75ef7
feat: wip Add bib_fields insertion for monitoring module
Nov 28, 2024
966b135
feat: wip Add module import bib functionality
Nov 29, 2024
aba60c8
feat: wip create a revision for the t_import table, add cor_entity_fi…
Dec 16, 2024
1c9bc1e
feat: handle type_widget for postgresql type
Dec 19, 2024
5c46f0b
feat: update module monitoring code retrieval to use dynamic module_code
Dec 19, 2024
ff676aa
Merge branch 'feat/import/install-protocol' of github.com:naturalsolu…
Dec 23, 2024
5458548
feat(version): change VERSION file
jacquesfize Dec 13, 2024
618e8f4
Release 1.0.0 (#382)
amandine-sahl Dec 13, 2024
3203748
Release 1.0.0 date
amandine-sahl Dec 13, 2024
10905cf
feat: wip install import monitoring
Nov 22, 2024
37614da
feat: wip Add bib_fields insertion for monitoring module
Nov 28, 2024
1c13914
feat: wip Add module import bib functionality
Nov 29, 2024
00a5e95
feat: wip create a revision for the t_import table, add cor_entity_fi…
Dec 16, 2024
7fcb4ca
feat: handle type_widget for postgresql type
Dec 19, 2024
4f33813
feat: update module monitoring code retrieval to use dynamic module_code
Dec 19, 2024
00a6d15
feat: wip install import monitoring
Nov 22, 2024
972230b
feat: wip Add bib_fields insertion for monitoring module
Nov 28, 2024
1dc10dd
feat: wip Add module import bib functionality
Nov 29, 2024
c40e60a
feat: wip create a revision for the t_import table, add cor_entity_fi…
Dec 16, 2024
af46078
feat: handle type_widget for postgresql type
Dec 19, 2024
50bcbf4
feat: update module monitoring code retrieval to use dynamic module_code
Dec 19, 2024
a5998d6
Merge branch 'feat/import/install-protocol' of github.com:naturalsolu…
Dec 23, 2024
edc5580
feat: implement new validation for module import process, rename and …
Jan 16, 2025
8676ee0
chore: minors changes
Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions backend/gn_module_monitoring/command/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
available_modules,
installed_modules,
process_sql_files,
process_module_import,
)


Expand Down Expand Up @@ -57,7 +58,6 @@ def cmd_install_monitoring_module(module_code):
où se situe les fichiers de configuration du module
- module_code (str): code du module (par defaut la dernière partie de module_config_dir_path )
"""

# module_config_dir_path = Path(module_config_dir_path)
# module_code = module_code or module_config_dir_path.name

Expand Down Expand Up @@ -134,14 +134,17 @@ def cmd_install_monitoring_module(module_code):
module.from_dict(module_data)
DB.session.add(module)
DB.session.commit()

# Ajouter les permissions disponibles
process_available_permissions(module_code, session=DB.session)
DB.session.commit()

# insert nomenclature
add_nomenclature(module_code)

# Ajouter les destinations disponibles
process_module_import(module_data)

source_data = {
"name_source": "MONITORING_{}".format(module_code.upper()),
"desc_source": "Données issues du module de suivi générique (sous-module: {})".format(
Expand Down
Loading
Loading