View changes and schema check use the wrong base copy for GeoPackages in subfolders

Aperta
#963 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@harminius ci sta già lavorando.

Dal 12/11/2026.

  • #964 di @harminius — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

For a GeoPackage in a project subfolder (e.g. data/survey.gpkg), the plugin looks for the base copy at .mergin/survey.gpkg instead of .mergin/data/survey.gpkg:

View changes shows no tab for the layer.
Project status doesn't warn about schema changes in that layer.
If the project root also has a survey.gpkg, the subfolder layer is compared with the root one. View changes then shows changes nobody made, or fails with GeoDiffLibError when the tables differ. Project status warns about a schema change nobody made.
Extract local changes is affected the same way, and Create diff sends only the file name to the server.
To reproduce:

Create a project with a point layer in data/survey.gpkg and sync it.
Add a feature and save.
Click View changes: there's no tab for the layer.

https://github.com/user-attachments/assets/853b53d6-b37f-4dec-89ba-ad932ffc2990

Lingua principale
Python
Stelle
45
Fork
21
Merge medio
3g 13h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MerginMaps/qgis-plugin

Tutte le issue di MerginMaps/qgis-plugin

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.