hpi-studyu / studyu

StudyU is a fully‑functional platform for personalized N‑of‑1 treatment advice.
https://StudyU.health
MIT License
21 stars 11 forks source link

Fix/offline mode improvements #593

Closed johannesvedder closed 7 months ago

johannesvedder commented 7 months ago

Improves the reliability of the offline mode.

How to Test this PR

  1. Launch a development database and create a study with the Designer.
  2. Join a study by using the app in debug mode on a mobile device and skip to the first day.
  3. Fill out the observation of the first day, click "next day", and thereafter close (force stop/kill) the app.
  4. Shutdown the database.
  5. Open the app again. The app should now perform in offline mode. The app state should not have changed.
  6. Fill out the observation of the second day. Force the app to stop again.
  7. Launch the database again.
  8. Start the app. The app state should not have changed and show a tick for the filled out observation of step 6.
  9. Validate the entries by logging into the Supabase backend and check if the subject_progress table contains the two entries of this test.
  10. If any entries are missing or the behavior of the app was different than described here, the test has failed.
github-actions[bot] commented 7 months ago

Visit the preview URL for this PR (updated for commit 014801f):

(expires Sat, 23 Mar 2024 16:34:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2149dad49ed83535217e50d5c18c0c8c90da629b

github-actions[bot] commented 7 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ REPOSITORY git_diff yes no 0.06s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_