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

Support odk.ona.io as ODK server option #1829

Open
spwoodcock opened this issue Oct 21, 2024 · 0 comments
Open

Support odk.ona.io as ODK server option #1829

spwoodcock opened this issue Oct 21, 2024 · 0 comments
Labels
backend Related to backend code dependency:osm-fieldwork Requires updates in osm-fieldwork effort:medium Likely a day or two enhancement New feature or request priority:low Backlog of tasks that will be addressed in time

Comments

@spwoodcock
Copy link
Member

Is your feature request related to a problem? Please describe.

  • ONA host a free ODK instance, but it's behind their own Django wrapper and custom auth implementation.
  • They also changed the API / endpoint schema from ODK, so requires some specific handling.
  • The key thing is that this server is free and it would be a big win for users to support it in FMTM.
  • This issue is more related to osm-fieldwork, but I have documented it here instead.

Describe the solution you'd like

Either:

  1. Create a separate wrapper for accessing ONA and publishing forms via API token: OnaOdkCentralAsync.py or something.
  2. Add extra logic to OdkCentralAsync.py to handle ONA server URLs, then change the logic / endpoints that are called to make it work.
  • ONA provides API tokens in the user dashboard.
  • We would need custom session handler to deal with the auth (as ONA uses their own auth endpoints).
  • We should use their /v2 API as it's basically a wrapper of /v1 plus extra functionality: https://github.com/onaio/onadata/blob/main/onadata/apps/api/urls/v2_urls.py
  • They seem to use a custom url format like /projects/1 and /forms/1 instead of ODK /projects/1/forms/1 (nested).
@spwoodcock spwoodcock added enhancement New feature or request priority:low Backlog of tasks that will be addressed in time backend Related to backend code dependency:osm-fieldwork Requires updates in osm-fieldwork effort:medium Likely a day or two and removed enhancement New feature or request labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code dependency:osm-fieldwork Requires updates in osm-fieldwork effort:medium Likely a day or two enhancement New feature or request priority:low Backlog of tasks that will be addressed in time
Projects
Development

No branches or pull requests

1 participant