Skip to content

Latest commit

 

History

History
110 lines (77 loc) · 7.25 KB

CHANGELOG.md

File metadata and controls

110 lines (77 loc) · 7.25 KB

CHANGELOG

[Unreleased]

[1.2.0] - 2024-08-20

Added

  • 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.

Changed

  • 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 renamed site_type_code
  • Changed path to marker icons

Fixed

  • 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

[1.1.0] - 2023-02-24

Added

  • 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).

Changed

  • 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 modern pyproject.toml file.
  • Updated installation and import documentations.

Fixed

  • 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.

Removed

  • Nomenclatures bas et haut were removed from POSITION_PLACETTE. #33

⚠️ Migrate

Follow the update order below:

  1. 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
  2. In the gn_commons.t_modules table, replace the value of module_code with "MHS" and the value of module_path with "mhs".
  3. If you have changed the path of the module:
    • Change symbolic links in geonature/external_modules/ and geonature/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
  4. Check the presence of POSITION_PLACETTE and STRATE_PLACETTE nomenclature types in the ref_nomenclatures.bib_nomenclatures_types table and the corresponding nomenclatures in ref_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
  5. Check for acquisition framework, dataset, source and utility functions get_dataset_id() and get_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
  6. 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

[1.0.0] - 2022-09-22

Added

  • 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.

Fixed

  • 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.

[1.0.0-rc.1] - 2019-07-30

Added

  • First stable version. Compatibility with GeoNature v2.3.2.

[0.0.1] - 2019-04-11

Added

  • Initial version.