WorldHealthOrganization / app

COVID-19 App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App makes too many queries to the backend

matthewblain opened this issue · comments

Summary

When the app is running, it makes many queries to GetCaseStats, and several for the static content bundles.

These values should be cached locally, possibly with an expiration from the server, but certainly for many hours absent an explicit user Refresh request.

Reproduction Steps

Open the app.
Browse around on it, switch to another app and back, etc. Don't change settings or otherwise take action to explicitly interact with the server.

Expected Behavior

One, or perhaps zero, request to the backend for each type of server provided data.

System

  • Device: Nexus 7
  • OS: Android
  • App Version: [1.2.0+14]

Additional Context

When I tested this, in 5 minutes I got 13 requests to GetCaseStats, and one or two to each of 16 different static files.

I don't know if this could be Android-version-specific, but I expect that it is universal.

See attached csv file with requests seen by my dev instance over my 5 minute session.

getcasestatslogs.txt

Screenshots

Checklist: