Open euranofshin opened 3 years ago
Based on the surveyCompleted() method here
it looks like the info about whether the survey was Completed comes from the user registration microservice, either '/userinfo' or '/userinfofixed'.
In the user registration microservice, I see a couple of potential issues:
Let me know if I'm on the right track or going down a rabbit hole here. Thanks!
Sarah, Look at the logic in this function: https://github.com/StatisticalReinforcementLearningLab/SARAv2/blob/d44254095555f9f04d3902ba82fdb1a9a5a92b5b/src/app/incentive/aquarium/aquarium.component.ts#L269
If we replicate the logic for the current survey, it will lock the survey between midnight to 6 pm and if the survey is already taken for the day.
This is great, thank you!
Currently, users in our version of the app are able to take the survey as many times as they want in a day. We want to restrict this to let them fill it out daily. The original version of the app made the survey unavailable once they filled it out.
Acceptance criteria: