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)

Open
#845 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. 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.
  2. Right click on folder name and select "Open directory..."
  3. Rename the folder to a new name, e.g. data_raw -> data_source.
  4. Save and sync.
  5. Refresh project in plugin.
  6. Observe that both folders are available.
  7. 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

Image

Conclusion
Created by GitHub Copilot and supervised by a human test analyst.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.