Skip to content

Fix single/multi select DateTime filter#4495

Open
gabriel-bolbotina wants to merge 3 commits into
masterfrom
fix-filtering-dateTime-singleMulti-select
Open

Fix single/multi select DateTime filter#4495
gabriel-bolbotina wants to merge 3 commits into
masterfrom
fix-filtering-dateTime-singleMulti-select

Conversation

@gabriel-bolbotina
Copy link
Copy Markdown
Contributor

GeoPackage can store DateTime as UTC with or without milliseconds.
The original code assumed that the DateTime entry for Single/Multi select contained milliseconds, which is not always the case if a point is added in QGIS compared to one saved with the mobile app.

Fix: check if the value contains milliseconds and change the format when creating the filter

@github-actions
Copy link
Copy Markdown

Coverage Report for CI Build 25853821189

Coverage decreased (-0.1%) to 57.793%

Details

  • Coverage decreased (-0.1%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 121 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

121 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
mm/app/filter/filtercontroller.cpp 98 4.46%
mm/core/merginapi.cpp 13 75.07%
mm/core/merginuserauth.cpp 9 68.24%
mm/app/position/providers/simulatedpositionprovider.cpp 1 91.67%

Coverage Stats

Coverage Status
Relevant Lines: 15239
Covered Lines: 8807
Line Coverage: 57.79%
Coverage Strength: 100.22 hits per line

💛 - Coveralls

@github-actions
Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 68441 dmg Expires: 12/08/2026 #6844
linux Build 📬 Mergin Maps 68621 x86_64 Expires: 12/08/2026 #6862
win64 Build 📬 Mergin Maps 60371 win64 Expires: 12/08/2026 #6037
Android Build 📬 Mergin Maps 815451 APK [arm64-v8a] Expires: 12/08/2026 #8154
📬 Mergin Maps 815451 APK [arm64-v8a] Google Play Store #8154
Android Build 📬 Mergin Maps 815411 APK [armeabi-v7a] Expires: 12/08/2026 #8154
📬 Mergin Maps 815411 APK [armeabi-v7a] Google Play Store #8154
iOS Build Build failed or not found. #9096

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.

Filters - Single Select and Multi Select do not work correctly with DateTime fields

1 participant