-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix/clean transfert permissions ALL TO MONTORING_XXX #291
Fix/clean transfert permissions ALL TO MONTORING_XXX #291
Conversation
@CodiumAI-Agent /review |
PR Analysis(review updated until commit 8f7d439)
PR Feedback💡 General suggestions: The PR addresses a critical issue in the permission management system and the approach seems to be sound. However, it would be beneficial to add some tests to ensure that the new permission management system works as expected and does not introduce new issues. ✨ Usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
Persistent review updated to latest commit 8f7d439 |
@CodiumAI-Agent /improve |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-suivi-eolien #291 +/- ##
====================================================
+ Coverage 71.63% 71.67% +0.03%
====================================================
Files 31 31
Lines 2193 2196 +3
====================================================
+ Hits 1571 1574 +3
Misses 622 622
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dcee9ad
to
a0ab27f
Compare
* Script sql de migration des permissions * Changelog
* Script sql de migration des permissions * Changelog
Remove export as csv test Fix/migrations (#285) * Move create cor_type_site bib_type_site cor_module_type to geonature * Remove id_nomenclature_type_site and migrate model to GeoNature * Move t_observations to GeoNature * Rename cor_type_site to cor_site_type * Bump GeoNature db downgrade does not work with data (#280) Fix test export route (#293) fix: organism_actors attributes fix: clean python files imports + BLACK 24 (#290) * fix: remove relative imports and unused libs * fix: remove unused modules * Add import fixture monitoring_users * Reorder imports * Black --------- Co-authored-by: Mathieu ROUDAUT <[email protected]> Co-authored-by: amandine-sahl <[email protected]> fix: use table models migrated in geonature core BibTypesSites (#292) * fix: use table models migrated in geonature core * fix: imports in tests files * Import TNomenclature from pypnnomenclature --------- Co-authored-by: Mathieu ROUDAUT <[email protected]> Co-authored-by: amandine-sahl <[email protected]> Fix/clean transfert permissions ALL TO MONTORING_XXX (#291) * Script sql de migration des permissions * Changelog Fix : sqlalchemy query Fix/detail site url - cf #298 (#299) * Correction url lien vers détail site * Harmonisation popup carto Fix/synchro on synthese (#288) * remove silented errors when insert in synthese * add migration for trigger delete in synthese --------- Co-authored-by: amandine-sahl <[email protected]> Feat/multiple geom type (#296) * allow multiple geom type * Sites avec plusieurs type de géométrie par défaut --------- Co-authored-by: amandine-sahl <[email protected]> Correction affichage propriétés spécifiques - cf #303 (#304) Fix : migration modification for permissions (#305) * Fix : migration modification for permissions Ajout interaction carte liste (#300) Fix downgrade declare available types sites feat: add unit tests for generic monitoring routes and utils (#295) * feat: add test for config route * feat: add data_utils tests * fix: response code for data utils route * fix: rename test to match source file * fix: remove useless file * fix: remove legacy code * feat: add tests for utils and error Harmonisation des processus d'exécution de sql (#308) * Harmonisation des processus d'exécution de sql * Add test forbidden sql instructions fix: filter ,sort and page on datatable (#310) * fix: filter ,sort and page on datatable Missing changes to check according to event on table(sort, filter, page) Refact code for ngOnChanges Reviewed-by: andriac * style(front): apply prettier Reviewed-by: andriacap
feat: manage geom through protocol - Fix bug changeActiveTab - Add displaying conditional site group geometry through protocol Reviewed-by: andriacap fix: create site group without geom Reviewed-by: andriacap hotfix: remove import AppConfig Error when using docker build Reviewed-by: andriacap Resolve conflicts Use load_default for marshmallow schema - cf #268 add id_digititer to generic observation.json - cf #274 fix migrations downgrade - cf #269 create site with type without custom properties - cf #266 Correction frontend [frontend] Style margin and map height - cf #270 fix site not visible in visit (#272) fix error on site create from module (#275) fix site property not displayed (#277) lint prettier 3.1.0 (#278) Remove laizy joined Correction yml Correction fixture sites Add asset type de site (#282) * Add asset type de site Lint prettier (#281) * Lint prettier 3.1.0 add dev-suivi-eolien in pytest.yml [SqlAlchemy 1.4] compat sqlalchemy 1.4 Corrections + Ajout de tests Remove export as csv test Fix/migrations (#285) * Move create cor_type_site bib_type_site cor_module_type to geonature * Remove id_nomenclature_type_site and migrate model to GeoNature * Move t_observations to GeoNature * Rename cor_type_site to cor_site_type * Bump GeoNature db downgrade does not work with data (#280) Fix test export route (#293) fix: organism_actors attributes fix: clean python files imports + BLACK 24 (#290) * fix: remove relative imports and unused libs * fix: remove unused modules * Add import fixture monitoring_users * Reorder imports * Black --------- Co-authored-by: Mathieu ROUDAUT <[email protected]> Co-authored-by: amandine-sahl <[email protected]> fix: use table models migrated in geonature core BibTypesSites (#292) * fix: use table models migrated in geonature core * fix: imports in tests files * Import TNomenclature from pypnnomenclature --------- Co-authored-by: Mathieu ROUDAUT <[email protected]> Co-authored-by: amandine-sahl <[email protected]> Fix/clean transfert permissions ALL TO MONTORING_XXX (#291) * Script sql de migration des permissions * Changelog Fix : sqlalchemy query Fix/detail site url - cf #298 (#299) * Correction url lien vers détail site * Harmonisation popup carto Fix/synchro on synthese (#288) * remove silented errors when insert in synthese * add migration for trigger delete in synthese --------- Co-authored-by: amandine-sahl <[email protected]> Feat/multiple geom type (#296) * allow multiple geom type * Sites avec plusieurs type de géométrie par défaut --------- Co-authored-by: amandine-sahl <[email protected]> Correction affichage propriétés spécifiques - cf #303 (#304) Fix : migration modification for permissions (#305) * Fix : migration modification for permissions Ajout interaction carte liste (#300) Fix downgrade declare available types sites feat: add unit tests for generic monitoring routes and utils (#295) * feat: add test for config route * feat: add data_utils tests * fix: response code for data utils route * fix: rename test to match source file * fix: remove useless file * fix: remove legacy code * feat: add tests for utils and error Harmonisation des processus d'exécution de sql (#308) * Harmonisation des processus d'exécution de sql * Add test forbidden sql instructions fix: filter ,sort and page on datatable (#310) * fix: filter ,sort and page on datatable Missing changes to check according to event on table(sort, filter, page) Refact code for ngOnChanges Reviewed-by: andriac * style(front): apply prettier Reviewed-by: andriacap
Lors de la migration alembic, la répercussion de la gestion des permissions (avec des sous_objets) utilisait une fonction.
Cela pose des soucis de lock de la table gn_module (plus des potientels problèmes de maintenance de la fonction) qui empechait la réalisation des migations suivantes.
Pour résoudre ce soucis, nous avons finalement utilisé une commande qui permet la migration des permissions existantes dans les instances.