Skip to content
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

Allow the XLSForm new_feature question geometry type to be configurable #329

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

spwoodcock
Copy link
Member

@spwoodcock spwoodcock commented Jan 9, 2025

  • Adds the param new_geom_type to the append_mandatory_fields function.
  • Accepts: POINT, POLYGON, LINESTRING.
  • Configures the new_feature question type based on that.

Note we don't actually use the question type in ODK mostly. But this just inform ODK for the geometry type to be stored in the submission.

Also note the tests are all failing currently due to a dockerfile issue, so we can't run the test suite: #328

{
"type": geom_field,
"name": "new_feature",
"label::english(en)": "Alternatively, take a gps coordinates of a new feature",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also need to update labels

Copy link
Member Author

@spwoodcock spwoodcock Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah of course, thanks, that label doesn't make sense anymore.

It would be nice to have it tweaked based on geometry type, but that increases the translation burden.

Perhaps just

'Please draw a new geometry'

would work for all geom types

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we can generalize it.

@spwoodcock spwoodcock merged commit ec9d11a into main Jan 10, 2025
3 of 4 checks passed
@spwoodcock spwoodcock deleted the feat/configure-new-geom-type branch January 10, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

2 participants