-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore choices with invalid geometry in Select one from map widget #5369
Conversation
Android version10, 13 Device usedRedmi 9T, Pixel 6a Problem descriptionLeaving a blank space in geometry values for "select place” included in xml file of a form crashes the app. Steps to reproduce the problem
Expected behaviorThe app shouldn’t crash. |
This happens in javarosa so it's kind of different I would rather leave it as is for now and file a separate issue. |
Tested with Success! Verified on Androids: 10 Verified cases:
The issue form the PR is filed as a separate issue. |
Tested with Success! Verified on Androids: 13 |
@dbemke is this an existing case? i.e. is it present in v2022.4.0? |
@seadowg It's in the PR and v2022.4.0 but I guess we haven't tested that case of invalid geometry in xml file before |
Closes #5368
What has been done to verify that this works as intended?
I've tested the fix manually and added automated tests.
Why is this the best possible solution? Were any other approaches considered?
So far we would throw an error if any of X choices had an invalid geometry. This doesn't make sense such choices should be just excluded not to block users.
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?
Choices with invalid geometries should be ignored when used in Select one from map widget so that users can still see other valid choices. Please test all possible options: external csv attachments (like the one attached below) and geojson attachments.
Do we need any specific form for testing your changes? If so, please attach one.
I used a form with a csv file:
geoTest.xlsx
geo.csv
but please also verify geojson
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.
Before submitting this PR, please make sure you have:
./gradlew checkAll
and confirmed all checks still pass OR confirm CircleCI build passes and run./gradlew connectedDebugAndroidTest
locally.