Skip to content

Validate geopoly when moving points#7010

Merged
grzesiek2010 merged 2 commits intogetodk:masterfrom
seadowg:incremental-move
Jan 6, 2026
Merged

Validate geopoly when moving points#7010
grzesiek2010 merged 2 commits intogetodk:masterfrom
seadowg:incremental-move

Conversation

@seadowg
Copy link
Member

@seadowg seadowg commented Jan 6, 2026

Closes #6990

Why is this the best possible solution? Were any other approaches considered?

Nothing to discuss here really! The change ended up being very simple.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Should just add validation when dragging polygon points. It'd be worth checking this works in all map engines.

Before submitting this PR, please make sure you have:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • added any new strings with date formatting to DateFormatsTest
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@seadowg seadowg marked this pull request as ready for review January 6, 2026 17:37
@seadowg seadowg requested a review from grzesiek2010 January 6, 2026 17:37
@grzesiek2010 grzesiek2010 merged commit 15450be into getodk:master Jan 6, 2026
7 checks passed
@dbemke
Copy link

dbemke commented Jan 7, 2026

Could you send us an apk with all map tokens? We've started testing and there are differences between Mapbox and OSM so we need to check Google Maps, too.

@seadowg seadowg deleted the incremental-move branch January 7, 2026 08:57
@seadowg
Copy link
Member Author

seadowg commented Jan 7, 2026

@dbemke the PR is merged so you should be good to use the latest master build!

@dbemke
Copy link

dbemke commented Jan 7, 2026

the PR is merged so you should be good to use the latest master build!

Google maps token doesn't work on the master version

@seadowg
Copy link
Member Author

seadowg commented Jan 7, 2026

Google maps token doesn't work on the master version

Oh! I thought it did. We'll need to get that fixed. I'll send you an APK.

@dbemke
Copy link

dbemke commented Jan 19, 2026

Tested with Success!

Verified on devices with Android 10

Verified cases:

  • moving points in geoshape and geotrace in Google maps, Mapbox, OSM, Carto, USGS in forms with incremental true and false, with constraints and required questions
  • moving point while recording location is on (all methods), off and after reopening the map
  • verifying if snackbars work as expected
  • adding and removing points
  • exploratory testing: moving points and tapping differents buttons, minimizing the app, screen rotation etc.
  • regression checks in all geo questions

@WKobus
Copy link

WKobus commented Jan 19, 2026

Tested with Success!

Verified on devices with Android 16

@srujner
Copy link

srujner commented Jan 19, 2026

Tested with Success!

Verified on devices with Android 10 and 12

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moving a point in a geopoly question with incremental=true should check constraints

5 participants