Skip to content

Fixed the UI bug not showing already selected entries for the multi select filter#4494

Open
gabriel-bolbotina wants to merge 2 commits into
masterfrom
fix-filtering-value-relation-multiSelect
Open

Fixed the UI bug not showing already selected entries for the multi select filter#4494
gabriel-bolbotina wants to merge 2 commits into
masterfrom
fix-filtering-value-relation-multiSelect

Conversation

@gabriel-bolbotina
Copy link
Copy Markdown
Contributor

Solved the UI issue described in issue by converting the string values saved in currentValue to numeric ones which are used in Value Relation with AllowMulti option turned on. In this sense, the UI will show the previously selected entries from the Multi select filter.

The other bug mentioned regarding the filter itself will be solved in the QGIS plugin by modifying the template query for Value Relation with AllowMulti on to something like this:
"sql_expression": "(',' || TRIM(\"NAME_OF_FIELD\", '{}') || ',' ) LIKE '%,' || @@value@@ || ',%'"

Once the template query is modified, the existing business logic in the code already handles this type of filtering with "OR" option.

@github-actions
Copy link
Copy Markdown

Coverage Report for CI Build 25852485488

Coverage remained the same at 57.921%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 1 coverage regression across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

1 previously-covered line in 1 file lost coverage.

File Lines Losing Coverage Coverage
mm/app/position/providers/simulatedpositionprovider.cpp 1 91.67%

Coverage Stats

Coverage Status
Relevant Lines: 15231
Covered Lines: 8822
Line Coverage: 57.92%
Coverage Strength: 100.34 hits per line

💛 - Coveralls

@github-actions
Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 68411 dmg Expires: 12/08/2026 #6841
linux Build 📬 Mergin Maps 68591 x86_64 Expires: 12/08/2026 #6859
win64 Build 📬 Mergin Maps 60341 win64 Expires: 12/08/2026 #6034
Android Build 📬 Mergin Maps 815111 APK [armeabi-v7a] Expires: 12/08/2026 #8151
📬 Mergin Maps 815111 APK [armeabi-v7a] Google Play Store #8151
Android Build 📬 Mergin Maps 815151 APK [arm64-v8a] Expires: 12/08/2026 #8151
📬 Mergin Maps 815151 APK [arm64-v8a] Google Play Store #8151
iOS Build Build failed or not found. #9093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtering does not work for fields with Value relation with Multiple selections

1 participant