- Compatibility with GeoNature 2.14
- Module permissions (CRUVED) declared in alembic branch
- Added
MODULE_DB_BRANCH
parameter in packaged module - Added "Leaflet.Deflate" frontend dependency
- Display message when no data after filtering
- Add nomenclature "position centrée" to "position_placette" type
⚠️ Added new nomenclature "Lichens" for STRATE_PLACETTE nomenclature type. #41. If module is already installed, you should run the queries in 02_migrate_v1.1.0_to_v1.2.0.sql.⚠️ Added new nomenclature "Position centrée" for POSITION_PLACETTE nomenclature type. #43. If module is already installed, you should run the queries in 02_migrate_v1.1.0_to_v1.2.0.sql.
- Updated
docs/install.md
- Updated
pyproject.toml
dependecies - The check_user_cruved_visit and cruved_scope_for_user_in_module functions are replaced by the VisitAuthMixin class, which contains methods for retrieving user rights on data (CRUVED action + scope)
- The config parameter
type_site_code
is renamedsite_type_code
- Changed path to marker icons
- Make shapefile export work if no dir_path exists
- Make csv export work again
⚠️ Allowed decimal numbers for recovery percentage of taxons on plots; #44. If module is already installed, you should run the queries in 02_migrate_v1.1.0_to_v1.2.0.sql.⚠️ Update of visits export view due to change on percentage column. If module is already installed, you should run the queries in 02_migrate_v1.1.0_to_v1.2.0.sql.- Deny adding a taxon already in habitat taxon list when creating/editing plot cover percentage. #45
- Added Bash script (
import_habitats.sh
) to import habitats into the module. - Added possibility to add new taxon to each releve. #31
- Added field to store additional transect position infos and improve base site code and name. #34
- Add default metadata for this module in database (see revision b920fc95ac59).
- Instead of the plot size in meters, use it as an area with square meters. #32
- Nomenclatures POSITION_PLACETTE and STRATE_PLACETTE are now managed in MHS module. #30
- Updated labels and definitions for STRATE_PLACETTE nomenclatures, cleaned and improved POSITION_PLACETTE nomenclatures, see nomenclature.csv.
- Changed module code from SHS to MHS.
- Simplify used of configuration parameters between frontend and backend.
- Replaced
setup.py
for a more modernpyproject.toml
file. - Updated installation and import documentations.
- Codes used instead of identifiers (primary keys value) in configuration parameters.
- Used a field not empty for habitat names to avoid "None" display.
- By default, for configuration parameters, use METADATA_NAME for habitat_list_name and METADATA_CODE for user_list_code.
- Nomenclatures bas et haut were removed from POSITION_PLACETTE. #33
Follow the update order below:
- ATTENTION: Only if you HAVE NO DATA ENTERED in this module, you can reinstall the schema and its associated data (metadata, source, taxon list, ...). If you reinstall the module, you don't have to follow the other steps. The command to delete and reinstall the module in the database:
geonature db downgrade monitoring_habitat_station@base; geonature db upgrade monitoring_habitat_station@head
- In the
gn_commons.t_modules table
, replace the value ofmodule_code
with "MHS
" and the value ofmodule_path
with "mhs
". - If you have changed the path of the module:
- Change symbolic links in
geonature/external_modules/
andgeonature/frontend/src/external_assets/
. Use new module name path in symbolic link. - Notify GeoNature of this change:
geonature update-configuration --build false && geonature generate-frontend-tsconfig && geonature generate-frontend-tsconfig-app && geonature generate-frontend-modules-route
- Change symbolic links in
- Check the presence of POSITION_PLACETTE and STRATE_PLACETTE nomenclature types in the
ref_nomenclatures.bib_nomenclatures_types
table and the corresponding nomenclatures inref_nomenclatures.t_nomenclatures
(see revision c575c5436f6f):- If they are not present, run the following command to update and install the nomenclatures:
geonature db upgrade monitoring_habitat_station@c575c5436f6f
- If they are present, manually modify the titles and definition of these nomenclatures (see nomenclature.csv). Stamp Alembic revision:
geonature db stamp c575c5436f6f
- If they are not present, run the following command to update and install the nomenclatures:
- Check for acquisition framework, dataset, source and utility functions
get_dataset_id()
andget_source_id()
for MHS module (see revision b920fc95ac59):- If present, stamp the Alembic revision:
geonature db stamp b920fc95ac59
- If nothing exists or partially, you can update the database via the Alembic command then manually make the necessary corrections in your database:
geonature db upgrade monitoring_habitat_station@b920fc95ac59
- If present, stamp the Alembic revision:
- Apply the SQL migration script 01_migrate_v1.0.0_to_v1.1.0.sql:
psql -h localhost -U geonatadmin -d geonature2db -f ~/www/modules/mhs/docs/sql/01_migrate_v1.0.0_to_v1.1.0.sql
- Add Alembic support.
- Compatibility with GeoNature v2.9.2.
- Add new module architecture ("packaged").
- Replace use of id by code for module.
- Update module documentation.
- Update syntax for utils-flask-sqla.
- Update syntax for Marshmallow use in config schema.
- Change module code to SHS.
- Fix issues due to upgrade to Angular 7.
- Clean chore files.
- First stable version. Compatibility with GeoNature v2.3.2.
- Initial version.