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

Project stats dashboard should use Entity data where appropriate, fallback to submission endpoints #1521

Closed
Tracked by #1502
manjitapandey opened this issue May 16, 2024 · 0 comments
Assignees
Labels
backend Related to backend code frontend Related to frontend code testing:ready Ready for testing

Comments

@manjitapandey
Copy link
Contributor

manjitapandey commented May 16, 2024

  • On the project submission / stats dashboard we could actually use the already existing Entity data for quite a few things:
    • Total features mapped can be determined from the number of Entities with status > 0
    • The 'validated vs mapped' graph.
    • Expected count & Submission count.
    • Etc
  • The main thing that Entities cannot be used for is getting the actual form data, or the user who submitted the feature.
    • In these cases we need to call the submissions endpoint from ODK Collect (i.e. the FMTM submission endpoints).
  • The Entity data should be used to quickly populate the stats page, with additional data loading in the background that relies on submission data.
  • We probably no longer need to cache the submissions in the S3 either, as we use a single form for submissions & it's relatively quick to return.
@NSUWAL123 NSUWAL123 mentioned this issue May 17, 2024
7 tasks
@NSUWAL123 NSUWAL123 added the testing:ready Ready for testing label May 17, 2024
@spwoodcock spwoodcock added backend Related to backend code and removed testing:ready Ready for testing labels May 21, 2024
@spwoodcock spwoodcock added the frontend Related to frontend code label May 21, 2024
@spwoodcock spwoodcock changed the title The submissions API endpoints and frontend should be refactored to best use Entities instead of submission data. Project stats dashboard should use Entity data where appropriate, fallback to submission endpoints May 21, 2024
@spwoodcock spwoodcock moved this from Tasks to In Progress in Field Mapping Tasking Manager (FMTM) Jul 1, 2024
@NSUWAL123 NSUWAL123 added the testing:ready Ready for testing label Jul 8, 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 frontend Related to frontend code testing:ready Ready for testing
Projects
Development

No branches or pull requests

4 participants