MerginMaps / MerginMaps/qgis-plugin
Renaming a non‑empty folder leaves empty ghost of old name in QGIS plugin tree (plugin 2025.4.0; web correct)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 44
- Forks
- 20
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 5
Description
Description
Renaming a non‑empty project folder in a Mergin Maps–managed QGIS project causes the new folder name to appear, but an empty “ghost” of the old folder remains visible only in the Mergin Maps plugin project tree. The web dashboard correctly shows only the new folder name.
Scope:
- Affects non‑empty folders (contain files/subfolders before rename).
- Ghost folder appears only in the plugin tree, not on web.
Environment
Staging/PROD
Application (+ app version, build, operating system)
QGIS versions:
- QGIS version: 3.40.5-Bratislava
Mergin Maps plugin:
- Plugin version: 2025.4.0 (PROD)
My operating system:
- macOS: Sequoia 15.6
Steps to reproduce
- Open a MM project with at least one non‑empty folder or create a new folder within the project and add file to this folder.
- Right click on folder name and select "Open directory..."
- Rename the folder to a new name, e.g.
data_raw -> data_source. - Save and sync.
- Refresh project in plugin.
- Observe that both folders are available.
- Inspect the “old” folder entry in the plugin tree: it is empty.
Actual results
- Duplicate folder entries (old empty + new correct) in the plugin tree after renaming a non‑empty folder and sync.
- Web dashboard reflects only the new folder (no duplicate).
Expected results
- After a folder rename, only the new folder should appear in the plugin tree.
- Old folder entry should be invalidated immediately without requiring restart.
Screenshots or logs
Conclusion
Created by GitHub Copilot and supervised by a human test analyst.
Contributor 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.
Research direction
No source file or test is named. Start by reproducing the rename and sync in QGIS 3.40.5 with Mergin Maps plugin 2025.4.0, then trace how the plugin refreshes its project tree. Done means the renamed folder appears once and the old empty entry is invalidated without restarting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100