Open biblicabeebli opened 5 months ago
@biblicabeebli we would like to develop 2 separate features, both of which would stop all data upload to a study
Work has begun on this feature, branch stop-studies. Have a vaguely-working, unfinished, no tests yet, prototype locally.
There is now an end-date and manually end study feature implemented, it is on our staging server for testing.
Need to add an indicator that "the study you are looking at has ended."
There are now some messages in the ... messages area telling the user that the study is stopped. Pages are the main dashboard page, view study, edit study, edit study device settings pages.
Made some more tests, fixed a bug, updated messages some.
"... This means that no further surveys will be sent out..."
I need to make sure it doesn't do that. That would be silly.
What happens if you try to pull the hidden study's data from the API?
It should fail, but it is kinda undefined behavior? I'll have to poke around and make sure we are locking it. It's possible that only some endpoints will fail/return no data, it should be universal. (Context: This is the old "delete study" feature but it is now named appropriately. We never want to actually delete studies, so important details have gone unexamined. And I tend to forget about it.)
I updated push notifications (schedules and other) they no longer work for ended, hidden, or manually stopped studies.
Authentication wrappers: they should already block hidden studies, they should NOT be made to block ended or manually stopped studies.
and now authentication wrappers all block hidden (internally "deleted") studies.
Make a (toggleable?) setting in study settings to shut down (block any new upload) a study. Data download, dashboard, forest etc should remain available.
Presumably there should be a beiwe-app-side feature to Detect when the study is over.