You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a dataset which the identifier field is a text and called "identificador" (actually a uuid type, but when imported it becomes a text). When I try to see the diff viewer it returns a " key: identificador" error and the geometry tab for the particular changed features shows empty. Nevertheless, if I select the all layer,, the geometry diff show the changed features.
To Reproduce
Steps to reproduce the behavior:
Create a postgis table like this:
CREATE TABLE public.concelho (
identificador uuid NOT NULL DEFAULT uuid_generate_v1mc(),
inicio_objeto timestamp NOT NULL,
fim_objeto timestamp NULL,
data_publicacao date NOT NULL,
dico varchar(255) NOT NULL,
nome varchar(255) NOT NULL,
geometria public.geometry(multipolygon, 3763) NOT NULL,
CONSTRAINT concelho_pkey PRIMARY KEY (identificador)
);
Import it into a kart repository in a postgis working copy
Open it in QGIS with kart plugin installed
Do some changes and save
Try to working copy changes
Expected behavior
feature geometries should show
Screenshots
feature diferences (not working)
layer diferences (working)
Version info (this is important!):
Kart Plugin version
1.0.13
QGIS version
3.28.12-Firenze
Operating system
Linux 6.5.6 76060506 generic x86_64 with glibc2.35
Kart version
Kart v0.14.2, Copyright (c) Kart Contributors
» GDAL v3.6.3; PROJ v9.2.0; PDAL v2.5.6
» PyGit2 v1.12.1; Libgit2 v1.6.4; Git v2.38.1; Git LFS v3.3.0
» SQLAlchemy v1.4.45; pysqlite3 v2.6.0/v3.40.1; SpatiaLite v5.0.1; Libpq v15.0.3
I think the problem may be from even sooner. I am not able to load layers from the kart plugin. It adds the layers, but the password is missing and QGIS cannot access to it. If I load it using normal qgis interface it works fine. I am creating my working copy using the following command:
kart init --workingcopy=postgresql://user:password@localhost:5432/mmsquare_aveiro/kart
I have then added it to kart plugin with add existing repository.
Had a little look at this - @SrNetoChan's diagnosis seems correct, QGIS gets the location of the PostGIS table in the working copy okay, but doesn't get the password, so can't actually read, display, or edit the working copy table contents.
Assigned to @nyalldawson - happy to discuss further if required.
I don't think it's related because I have tried other passwords but It also seems to struggle with passwords with strange characters. My password has a # character so, when creating the working copy I had to pass %23. This is not translated correctly on the plugin side and I am asked to correct my credentials.
Describe the bug
I have a dataset which the identifier field is a text and called "identificador" (actually a uuid type, but when imported it becomes a text). When I try to see the diff viewer it returns a " key: identificador" error and the geometry tab for the particular changed features shows empty. Nevertheless, if I select the all layer,, the geometry diff show the changed features.
To Reproduce
Steps to reproduce the behavior:
CREATE TABLE public.concelho (
identificador uuid NOT NULL DEFAULT uuid_generate_v1mc(),
inicio_objeto timestamp NOT NULL,
fim_objeto timestamp NULL,
data_publicacao date NOT NULL,
dico varchar(255) NOT NULL,
nome varchar(255) NOT NULL,
geometria public.geometry(multipolygon, 3763) NOT NULL,
CONSTRAINT concelho_pkey PRIMARY KEY (identificador)
);
Expected behavior
feature geometries should show
Screenshots
feature diferences (not working)
layer diferences (working)
Version info (this is important!):
Kart Plugin version
1.0.13
QGIS version
3.28.12-Firenze
Operating system
Linux 6.5.6 76060506 generic x86_64 with glibc2.35
Kart version
Kart v0.14.2, Copyright (c) Kart Contributors
» GDAL v3.6.3; PROJ v9.2.0; PDAL v2.5.6
» PyGit2 v1.12.1; Libgit2 v1.6.4; Git v2.38.1; Git LFS v3.3.0
» SQLAlchemy v1.4.45; pysqlite3 v2.6.0/v3.40.1; SpatiaLite v5.0.1; Libpq v15.0.3
Additional context
Full Error
{
"ExceptionDetails": {
"Type": "KeyError",
"Message": "'identificador'"
},
"Environment": {
"Qgis Version": "3.28.12-Firenze",
"Operating System": "linux",
"Locale": "en"
},
"Trace": [
{
"Name": "treeItemChanged",
"Filename": "diffviewer.py",
"LineNo": 186,
"Variables": {
"self": "<kart.gui.diffviewer.DiffViewerWidget object at 0x7fe1312d5000>",
"current": "<kart.gui.diffviewer.FeatureItem object at 0x7fe13023e200>",
"previous": "None"
}
},
{
"Name": "_createLayers",
"Filename": "diffviewer.py",
"LineNo": 481,
"Variables": {
"self": "<kart.gui.diffviewer.DiffViewerWidget object at 0x7fe1312d5000>"
}
},
{
"Name": "_createFeatureDiffLayers",
"Filename": "diffviewer.py",
"LineNo": 528,
The text was updated successfully, but these errors were encountered: