View changes and schema check use the wrong base copy for GeoPackages in subfolders
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- Python
- Stars
- 45
- Forks
- 21
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MerginMaps/qgis-plugin
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MerginMaps/qgis-plugin#953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MerginMaps/qgis-plugin#848 · 1 comment ·
-
Project history and Remove locally fail in projects with long paths on Windows (> 260 characters)Openbug windows
Difficulty 3/5 1-2 days Newbie friendliness 55/100
MerginMaps/qgis-plugin#967 ·
-
Error when syncing project.Possibly taken @harminius claimed this 7 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 54/100
MerginMaps/qgis-plugin#960 · 2 comments · 1 assignee ·
-
@mm_project_version is not updatedPossibly taken @harminius claimed this 21 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
MerginMaps/qgis-plugin#947 · 1 assignee ·
All issues in MerginMaps/qgis-plugin
Similar issues
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
pgadmin-org/pgadmin4#10797 ·
Maintainers usually reply within 2 days
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 72/100
ida-arbeitszeit/workers-control#1588 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
aws-samples/sample-per-model-bedrock#930 ·
Maintainers usually reply within 1 day
-
Locus / Transcript lacks __bool__, so bool(transcript) queries the SQLite exon table via __len__Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Deltares/numba_celltree#100 · 1 comment ·