Skip to content

WIP: Value relation rework & more small updates#4525

Open
tomasMizera wants to merge 10 commits into
masterfrom
fix/value-relation-2026
Open

WIP: Value relation rework & more small updates#4525
tomasMizera wants to merge 10 commits into
masterfrom
fix/value-relation-2026

Conversation

@tomasMizera

@tomasMizera tomasMizera commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Introduces a new way of handling value relation editors. Improves performance and stability.

Changes:

  • Created a utility class ValueRelationController that performs lookups from key to value, handles hot reload (filter expression) and conversions from/to QGIS format, e. g. "{1,2,3}" to [1,2,3]
  • Lookup on background thread
  • Reading only Key and Value attributes (compared to all attributes before), no geometry
  • Unified search UX with filters - drawer goes fullscreen if searchbar gets focus

Todos:

  • Test PG lookups
  • Test spatial filter expressions (@IvaKuklica) - filter expression like distance(@geometry, @current_geometry) <= 0.000135
  • Autotests finalization

Other updates:

  • Updated min required number of features to show searchbar in drawers from 5 to 8
  • Added clear button to value map and value relation editors
  • Refactored MMDrawerHeader and MMListMultiselectDrawer multiselect drawer to make their API easier to use
  • Anhanced UX for completers - searchbar is autofocused

Resolves #4255
Resolves #4497
Resolves #4443
Resolves #3297
Resolves #3737
Resolves #4508
Resolves #4505
Resolves #2148 (<- the only limitation is VR fields with filter expression)
Resolves (? needs to be tested) #4504

@tomasMizera tomasMizera requested a review from Withalion June 4, 2026 14:16
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build Build failed or not found. #6885
linux Build Build failed or not found. #6911
win64 Build 📬 Mergin Maps 60791 win64 Expires: 02/09/2026 #6079
Android Build 📬 Mergin Maps 819551 APK [arm64-v8a] Expires: 02/09/2026 #8195
📬 Mergin Maps 819551 APK [arm64-v8a] Google Play Store #8195
Android Build 📬 Mergin Maps 819511 APK [armeabi-v7a] Expires: 02/09/2026 #8195
📬 Mergin Maps 819511 APK [armeabi-v7a] Google Play Store #8195
iOS Build 📬 Build number: 26.06.913711 #9137

@Withalion Withalion marked this pull request as ready for review June 8, 2026 13:26
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build Build failed or not found. #6897
linux Build Build failed or not found. #6923
win64 Build Build failed or not found. #6091
Android Build 📬 Mergin Maps 820711 APK [armeabi-v7a] Expires: 07/09/2026 #8207
📬 Mergin Maps 820711 APK [armeabi-v7a] Google Play Store #8207
Android Build 📬 Mergin Maps 820751 APK [arm64-v8a] Expires: 07/09/2026 #8207
📬 Mergin Maps 820751 APK [arm64-v8a] Google Play Store #8207
iOS Build 📬 Build number: 26.06.914911 #9149

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