hotosm / fmtm

Field Mapping Tasking Manager - coordinated field mapping.
https://fmtm.hotosm.org/
GNU Affero General Public License v3.0
42 stars 44 forks source link

Add OData spec endpoints for project export and visualisation #1440

Closed spwoodcock closed 1 week ago

spwoodcock commented 5 months ago

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

Describe the solution you'd like

Describe alternatives you've considered

spwoodcock commented 2 weeks ago

As a first pass, perhaps it might be good to just add some documentation for how to connect PowerBI or other tools directly to the ODK Collect OData endpoints?

This is a very quick win, as the endpoints are already available and should provide most of what we need!

spwoodcock commented 2 weeks ago

Example data

Example OData endpoint (requires auth): https://odk.hotosm.org/v1/projects/86/datasets/features.svc/$metadata

This endpoint will be used to get all available endpoints and data, e.g. Entity data: https://odk.hotosm.org/v1/projects/86/datasets/features.svc/Entities.

Possible OData Clients

Plan of action

spwoodcock commented 1 week ago

Using PowerBI (Desktop) for OData Endpoints

  1. Start a new project, add a new data source 'OData Feed'

    image

  2. Use the OData URLs shown in the ODK docs: a. Submission data: /v1/projects/{projectId}/forms/{xmlFormId}.svc e.g. https://odk.hotosm.org/v1/projects/86/forms/df9135c8-84b1-4753-b348-e8963a8b4088.svc a. Entity data: /v1/projects/{projectId}/datasets/{name}.svc e.g. https://odk.hotosm.org/v1/projects/86/datasets/features.svc

    image

  3. Enter your credentials using Basic Auth

    image

  4. Preview the data

    image

  5. Transform data as needed, load into charts, graphs, etc, to create the dashboard you need.

    image

This very basic example shows the mapping progress of project 86 in the production ODK Central server.

It shows that about 50% of buildings were mapped, with about 2% having issues (status=6)

[!NOTE] This is using ODK Central OData endpoints that are already available. This issue is about creating new OData endpoints.

While this may be useful to reassess in the future, I actually think the ODK Central endpoints provide pretty much everything we will need to cover most use cases!

@ramyaragupathy @manjitapandey I am confident this approach can fulfill all the requirements for the Tokha project coming up:

I'm going to close this issue in favour of another around documenting this process well, so that people can create their own visualisations easily.

[!NOTE] I do still think we should have a basic visualisation dashboard in FMTM to cover most user needs, for those that can't /won't be able to set up the proposed solution. But it's not the primary goal of FMTM.

manjitapandey commented 1 week ago

so @spwoodcock , we will be using PowerBi or Redash?? I am not clear on this.

spwoodcock commented 1 week ago

Both!

Redash needs more research into the config and is a possible long term solution for us + recommendation for technical users.

PowerBI is recommended for immediate use and non-technical users too. For Tokha at least we definitely recommend this 👍

spwoodcock commented 5 days ago

Additional Research

Describing various options in different forms.

Desktop Apps

Hosted Solutions

Note with these options we need to pay to host them...

Web

Summary

In summary this is a tough decision!

Recommendation: