test(import): fix stale QGIS nested group name expectation - #1597
Conversation
#1593 changed QGIS layer-group names from flattened ("Transport / Places") to plain names plus a parentId. #1584 branched before that change and added a visibility-inheritance test still asserting the flattened name, so main went red once both landed. The importer behavior is correct; only the expectation was stale.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe QGIS project import test now expects the nested ChangesQGIS import test
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The fix is fully consistent with the already-established behavior (line 129 confirms No inline comments needed; this is a trivial, verified-correct fix. Code reviewBugs: None found. The updated expectation ( Security: N/A — test-only change, no security surface affected. Performance: N/A — no runtime code changed. Quality: The change is minimal and correctly scoped to just the stale assertion; no unrelated cleanup was bundled in. Confidence: high. CLAUDE.md: No applicable guidelines triggered (no lockfile, catalog, or mirrored-constant changes involved). No issues found — this is a correct, well-justified one-line fix for a merge-race test regression. |
🔍 Cloudflare PR preview
|
🔍 GitHub Pages PR preview
|
Problem
mainis red: CI run 30669858506 fails on one test —QGIS project import > inherits visibility from unchecked parent groups:Cause
A merge race between two PRs:
groupDisplayNameinapps/geolibre-desktop/src/lib/qgis-project-import.tsso nested QGIS groups keep their own name (Places) and record aparentId, instead of the old flattenedTransport / Places. It updated the existing assertions.Each PR was green on its own base; the combination is not.
Fix
Update the stale expectation to the nested naming. The importer behavior — both the nested names from #1593 and the parent-visibility inheritance from #1584 — is correct and unchanged.
Verification
node --import tsx --test tests/qgis-project-import.test.ts— 13/13 passnpm run test:frontend— 4571 pass, 0 failpre-commit run --files tests/qgis-project-import.test.ts— passed (includes the npm build hook)Summary by CodeRabbit