Releases: lpoaura/GN2PG
v1.5.0
What's Changed
- Update geonature_export_sinp_with_cd_nomenclature.sql by @pierre56 in #38
- Andriacap feat/flask admin view by @lpofredc in #41
- Feat : flask admin view - Tableau de bord by @andriacap in #39
- Fix/pylint by @andriacap in #43
- v1.5.0 by @lpofredc in #42
❗ The minimum version of the source GeoNature instance required for the incremental update must be a version 2.12.0
With the financial support of Office français de la biodiversité.
New Contributors
- @pierre56 made their first contribution in #38
- @andriacap made their first contribution in #39
Full Changelog: v1.4.0...v1.5.0
v1.4.0
What's Changed
- Feat/parallelisation by @ophdlv in #30
- fix: SADeprecationWarning > Calling URL() directly is deprecated by @lpofredc in #32
- Refactor/tests and optimisation by @ophdlv in #29
- Update README.rst authors by @camillemonchicourt in #34
- Update README.md by @lpofredc in #35
- Changelog 1.4.0 by @camillemonchicourt in #33
- Draft: Improve code quality (PyLint) and french traduction by @lpofredc in #36
- New Github actions Workflows by @lpofredc in #37
New Contributors
- @ophdlv made their first contribution in #30
- @camillemonchicourt made their first contribution in #34
Full Changelog: 1.3.0...v1.4.0
ToDo on update
Unused database table datasets_json
can be dropped:
BEGIN;
DROP TABLE gn2pg_import.datasets_json;
COMMIT;
v1.3.0
Changes
- Add optional query strings on API calls, almost required to order export API using key
orderby
TODO
On client side
pip install --upgrade gn2pg-client
- for those who use gn2pg to populate a GeoNature database, you must apply new
to_gnsynthese.sql
script. To proceed, simply execute:
gn2pg_cli --custom-script to_gnsynthese <yourconfigfile>
You must also update your config file to add a custom query string to order results by id_synthese
as mentionned in template and docs:
# Source configuration,
# Duplicate this block for each source (1 source = 1 export)
[[source]]
# Source name, will be use to tag stored data in import table
name = "Source1"
# GeoNature source login
user_name = "<monuser>"
# GeoNature source password
user_password = "<monPwd>"
# GeoNature source URL
url = "<http://geonature1/>"
# GeoNature source Export id
export_id = 1
data_type = "synthese_with_metadata"
# GeoNature ID application (default is 3)
id_application = 1
# Additional export API QueryStrings to filter or order data, you can add multiple columns by separating column names with ":"
[source.query_strings]
orderby = 'id_synthese'
If you upgrade directly from version before 1.2.0, A unique constraint on utilisateurs.t_roles.uuid_role
is required. A PR have been proposed to PnX-SI/UsersHub-authentification-module#46. Or you can add this manually with this query:
ALTER TABLE utilisateurs.t_roles
ADD CONSTRAINT t_roles_uuid_un_tmp
UNIQUE (uuid_role)
;
On provider side
-
actors identify informations have been restructured in
synthese_with_metadata
view. you must apply new scripts provided in indata/source_sample
. -
Export API with LIMIT OFFSET can return unordered results as mentionned in PostgreSQL documentation, to solve this issue, waiting an official new relase of module [PnX-SI/Utils-Flask-SQLAlchemy], you must patch geonature dependency by changing those lines in file
~/geonature/backend/venv/lib/python3.7/site-packages/utils_flask_sqla/generic.py
with
v1.2.0
Changes
- Update dependencies
- Removal of requests to assign an owner to functions, cause of errors
- Set
gn2pg_import
as default schema name in config template - Fix custom-script command on default to_gnsynthese.sql script due to
%
character - Improve t_roles populate on a GeoNature database using json objects with first and last name
- Fix missing validation status on exports samples
TODO
On client side
pip install --upgrade gn2pg-client
- for those who use gn2pg to populate a GeoNature database, you must apply new
to_gnsynthese.sql
script
To proceed, simplyy execute:
gn2pg_cli --custom-script to_gnsynthese <yourconfigfile>
A unique constraint on utilisateurs.t_roles.uuid_role
is required. A PR have been proposed to PnX-SI/UsersHub-authentification-module#46. Or you can add this manually with this query:
ALTER TABLE utilisateurs.t_roles
ADD CONSTRAINT t_roles_uuid_un_tmp
UNIQUE (uuid_role)
;
On provider side
- Observations validation status was missing in previous query samples. Refer to scripts in
data/source_sample
to apply new scripts to your export views.
v1.1.2
- Fix null value in
gn_synthese.synthese.the_geom_local
caused by null srid value while getting srid from first data ingn_synthese.synthese
. - Fix delete trigger on synthese standard data (
synthese_with_metadata
type missing).
To update
To update GN2PG Cli:
pip install --upgrade gn2pg-client
To update geonature integration scripts
gn2pg_cli --custom-script to_gnsynthese <myconfigfile>
v1.1.0
- New SQL scripts for geonature 2 geonature imports which provide triggers to insert data in synthese and populate most of the metadata data (acquisition frameworks, datasets, actors such as organisms and roles, territories, etc.). Source query sample is provided in fie geonature_export_sinp_with_metadata.sql
v1.0.1
v1.0.0
v0.1.2-dev
- Fix #18, app crash while trying to log download events
Release note
To update:
pip install --upgrade gn2pg-client
v0.1.0-dev
Changes
- New feature : incremental update
How to update
using command
pip install --upgrade gn2pg-client