Issues to Address - revaturelabs/qcforce-survey-service GitHub Wiki
1. Retrieve date from the Google Calendar.
Problem: Currently, the Survey Service is automatically sending emails at a specific time (on Monday at 10 am) in order to provide the survey link for all associates from active batches at Revature. This means that the QC team cannot move the QC event to a different day of the week and time.
Possible Solution: By using the Google Calendar API, one can send out emails at any time based on the Google Calendar date.
2. Send emails from the fastest running instance.
Problem: Currently, the Survey Service is sending emails from all running instances at the same time. This is a problem because one associate will receive the same email multiple times.
Possible Solution: The first instance which will send out emails can have a flag that this instance is sending emails. Therefore, the other instances will not send out emails if they see that the flag is triggered.
3. Saving the Chart Data.
Problem: Currently, the Chart Data is being recalculated every single time the front-end refreshes the page.
Possible Solution: Save the Chart Data to the database and every time new information comes in, update the chart data, and send that data to the front-end.