Skip to content

Fix single/multi select DateTime filter#4495

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

Fix single/multi select DateTime filter#4495
gabriel-bolbotina wants to merge 4 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

github-actions Bot commented May 14, 2026

Coverage Report for CI Build 26822887487

Warning

No base build found for commit 93fb13e on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 57.738%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 15255
Covered Lines: 8808
Line Coverage: 57.74%
Coverage Strength: 98.62 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

Comment thread app/filter/filtercontroller.cpp Outdated
@Withalion
Copy link
Copy Markdown
Contributor

I have a bad feeling though that, if the user will use now() expression as default value, which saves miliseconds too and manages to get 0 miliseconds. The filter won't be able to filter that value, so we should either try both values or get the string value before it's transformed to QDateTime/ JS Date.

@github-actions
Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 68551 dmg Expires: 17/08/2026 #6855
linux Build 📬 Mergin Maps 68731 x86_64 Expires: 17/08/2026 #6873
win64 Build 📬 Mergin Maps 60491 win64 Expires: 17/08/2026 #6049
Android Build 📬 Mergin Maps 816511 APK [armeabi-v7a] Expires: 17/08/2026 #8165
📬 Mergin Maps 816511 APK [armeabi-v7a] Google Play Store #8165
Android Build 📬 Mergin Maps 816551 APK [arm64-v8a] Expires: 17/08/2026 #8165
📬 Mergin Maps 816551 APK [arm64-v8a] Google Play Store #8165
iOS Build Build failed or not found. #9107

@gabriel-bolbotina gabriel-bolbotina force-pushed the fix-filtering-dateTime-singleMulti-select branch from bed2d9c to 429d49c Compare June 2, 2026 13:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 68791 dmg Expires: 31/08/2026 #6879
linux Build 📬 Mergin Maps 69051 x86_64 Expires: 31/08/2026 #6905
win64 Build 📬 Mergin Maps 60731 win64 Expires: 31/08/2026 #6073
Android Build 📬 Mergin Maps 818911 APK [armeabi-v7a] Expires: 31/08/2026 #8189
📬 Mergin Maps 818911 APK [armeabi-v7a] Google Play Store #8189
Android Build 📬 Mergin Maps 818951 APK [arm64-v8a] Expires: 31/08/2026 #8189
📬 Mergin Maps 818951 APK [arm64-v8a] Google Play Store #8189
iOS Build 📬 Build number: 26.06.913111 #9131

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

2 participants