-
Notifications
You must be signed in to change notification settings - Fork 21
Conflicts layer fails to add from PostgreSQL #90
Comments
@troopa81 looks like the conflict layers PK is taken from the first layer in the layer three for postgis working copies, I added the bug label because that is not good @stepanosokin you should be able to workaround the issue by loading the conflict layer manually from qgis (add vector layer). |
Thanks for answer! That was the first thing I tried. But it still fails, I can add only *_cflt layer, which is not right as I suppose. I tried to delete the record from *_cflt layer. After that I could add *_conflicts layer, then I had to remove a record from it. And as a result there were no edits from this checkout at all after commit. It's confusing. |
However, I tried to add the layer by dragging, maybe I should try to add it from "add Vector layer" as you suggest. I'll try. |
@vmora , I tried to load conflicts layer manually (add Vector layer). I cannot edit the layer's attribute table (delete button doesn't appear). Besides, the Versioning toolbar now says that "layers don't share DB and schema" |
@stepanosokin the impossibility to edit may come from the absence of primary key, you can specify the key for qgis in the postgis layer interface. Normally the conflict layers are in the same schema as the other layers (wich are postgis views in the schema), so I suspect you are not using the right schema.
The plugin has been ported to QGIS 3, so an up-to date 3.4 should work. The plugin as not been tested with PostgreSQL 11 but this is unlikely to cause a problem. |
@vmora , I've managed to add *_conflicts layer layer manually (using versioning_id as a key) and edit it. But after I remove one of conflicting rows from it's table, the layer in checkout itself keeps both records. So after I commit, the head schema also receives both objects. If I delete one of conflicting rows in the checkout layer itself, than it's ok. But why do I have to do it twice? |
Update: seems to work better if to make some edits to checkout layer after resolving a conflict |
Project migrated to : https://gitlab.com/Oslandia/qgis/qgis-versioning |
Hi!
I have PostgreSQL 11.6 and QGIS 3.4. I've made two PostgreSQL server checkouts. After that edited each checkout so that there is a conflict. I update first checkout, it's ok. But when I update second checkout which has a conflict, I get an error because *_conflicts layer cannot be added to the map. It seems to me that the reason is that qgis is trying to use first row - conflict_id - as gid, while it's values are not unique. Can you please help?
The text was updated successfully, but these errors were encountered: