InteractionEcologies/scilla-mobile

Can't change reminder times

Opened this issue · 8 comments

During setup, I chose different times for my morning, afternoon, and evening reminder, and chose the regimen to start today. When I went to the dashboard the original times (8, 12, and 6) were still showing for all my reminders, rather than 10, 2, and 8 as I had chosen.

The times I entered show up correctly in "Regimen" but not in the dashboard.

Potential cause:

  • When a regimen is created, it does not update the regimen cache in AppStore.
  • Dashboard uses the cache to display treatment cards.

When a regimen is saved, it does trigger AppStore (via AppInitializer) to reset the regimen cache. May be something wrong with async calls.

Update: in 0.2.2 the morning reminder time is updated, but not the other two.
11AD4CED-DAF9-4CAC-89F7-C1A8FF3F0214
08821C9C-5D58-4DFB-AC57-0AF855150B49

@numerator, I think I fixed the issue (at least on my side). Please try on Monday and see if the issue is still there. Will publish the updated JS code. I think you can just restart the Scilla app and receive the updated JS code.

This appears to have been fixed in 0.2.4. However I don't get any notifications ever.

I thought I had seen this working but I just opened Scilla today and in 0.2.4 the problem seems to still be there. Not sure if it only occurs under certain circumstances--perhaps the DB has old info and can sometimes push that info back to the app?

Update: when I change the reminder times in Regimen and then go back to the dashboard, the specific changes I made are reflected (but old errors still persist). When I log out and log back in, it looks like the correct values are displayed. Also when I close the app and reopen it. So as of now the bug is not reproducible, but I'd like to leave it open for now.

OK, now I see what the problem might be. When I change the reminder times during setup, they are not shown properly in the dashboard. However, if I go back in and edit the regimen, the values that I change do show up. The values configured during setup show up correctly in the regimen regardless--just not in the dashboard.