Changelog#
Unreleased#
0.9.0 - 2026-01-22#
Configuration
* Remove complex link between project and PostgreSQL connection.
The file media/gobsapi/projects_connections.ini is not needed anymore.
API changes
* Use series and not indicators to get the objects (observations, etc.)
* Series
* Add the protocol code in the series JSON
* Avoid to create a series for each authenticated user. The series must be created beforehand.
* Observation:
* Update/Delete/Media : Add checks about editable status based on the protocol pr_days_editable
* Fix an error if the geometry so_unique_id already exists
* Spatial data - use only 8 digits for geometry precision
Documentation
* Update API doc
* Remove indicator in the URL Path (replace by series)
* Update observation JSON content
* Fix minor errors
Tests * Upgrade test database to QGIS plugin G-Obs version 7.0.2
Software compatibilities * Lizmap Web Client: between 3.7 and 3.9 * PostgreSQL: test database in 17 * QGIS 3.40
0.8.1 - 2025-01-10#
Changed#
- SAML group synchronisation
- avoid synchronisation for non SAML users (check given attributes)
- avoid errors with uppercase groups by forcing the new created group with lower case
- add missing admin rights to the ROLE_GOBS_ADMIN
- API - Automatic actor creation: use platform_user category
- Tests
- Improve the QGIS administration project & its lizmap configuration
- Update test data
0.8.0 - 2024-07-25#
Changed#
- Compatibility for Lizmap Web Client 3.6 & 3.7 - Remove compatibility for Lizmap Web Client 3.5
- Exclude some files from the Composer package
Added#
- User authentication - Allow the use of Basic authentication for /user/login endpoint
- When using SAML authentication protocol, add synchronization of Roles and SI (feature taken from the old deprecated module gobs)
Fixed#
- Tools - Better errors catchment when executing SQL queries
0.7.0 - 2023-07-25#
Changed#
- Projects - remove the link between Lizmap projects and G-Obs project & use the project table
- Observations - Restrict read & write access based on the user accessible project views
Added#
- Plugin Lizmap compatibility - Add a way to get Lizmap Web Client metadata from G-Obs API
Fixed#
- Ensure the entry point
gobsapi.phpis overwritten on each version upgrade
0.6.0 - 2023-03-27#
Changed#
- Indicator - Move the dimensions characteristics into a new dedicated table
dimension
0.5.1 - 2023-02-21#
Added#
- Observation - Allow to create an observation by passing a spatial object reference The API will not create a new dedicated spatial object to reference the observation but will use the given spatial object
0.5.0 - 2022-11-02#
Added#
- Observation - Respect and use the given
UUIDwhen creating a new observation instead of always generate a new one
Changed#
- Installation - improve the installation process and adapt the code for LWC >= 3.5
- Logs - Add the user login as a prefix in the API logs if available
- Docs:
- Add the entry point
/project/{projectKey}/indicator/{indicatorCode}/document/{documentUuid}in the API documentation - Remove the useless mention of
jDbprofile
Tests#
- Unit tests - Add a full dockerized stack with Lizmap Web Client to test the API entry points
- Add test data (taken from the G-Obs QGIS plugin)
- Add a QGIS project with the test data and the needed variables
- Allow to use the make command to run the test stack and import the needed data
- Add 14 Python unit tests to cover the main API entry points
0.4.1 - 2022-04-22#
- Observation - Return the full geometry (Point, Linestring or Polygon) and not the centroid anymore in the "wkt" property of the observation.
- QGIS Project - Get the QGIS PostgreSQL connection name and use it as the name of the PostgreSQL service file to use for the database connection.
- Installation - Use the new method
createEntryPointto correctly install gobsapi.php - CI - Create a release on GitHub after a publishing a tag
- Docs - Switch to MkDocs
0.4.0 - 2021-07-04#
- User - Automatically create an actor in the G-Obs database for the authenticated user
- Indicator - Automatically create a series for the authenticated user and the given indicator, allowing the user to directly create observations for this indicator
- Docs - Add installation, configuration & changelog chapters in https://docs.3liz.org/lizmap-gobsapi-module/
0.3.3 - 2021-03-02#
- Observation - Add editable field to let API consumer knows whether the observation can be edited
0.3.2 - 2021-02-10#
- Config - Add option to log every API call in Lizmap Web Client default log file
- Docs - Update README with debug chapter
- Add CHANGELOG.md file
0.3.1 - 2020-11-01#
- Media - Use gobsapi.php URL for project geopackage, indicator documents and observation media
- Project - Add default maximum extent if project projection unknown
- Docs - Update README