Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[$100] Issues with interview schedule reminder notification #570

Open
sdgun opened this issue Nov 4, 2021 · 14 comments
Open

[$100] Issues with interview schedule reminder notification #570

sdgun opened this issue Nov 4, 2021 · 14 comments

Comments

@sdgun
Copy link

sdgun commented Nov 4, 2021

Observed the below issues in in interview schedule reminder notification:

Issue 1

All reminder emails related to different interviews were sent at the same time irrespective of their start time, is there a scheduled time to send this or is it ssent after like 1 hour of the selected start time?

time.mp4

Issue 2

'minutes' text is missing

image

@maxceem
Copy link
Contributor

maxceem commented Nov 5, 2021

Sum up:

  • Issue 2 would be fixed in Sendgrid.
  • Only issue 1 is in scope
  • This happens because the logic we use is not correct.
    • sendInterviewScheduleReminderNotifications is triggered each day the same time. so all notification are send at the same time.
    • instead of it these notification has to be sent 24 hours after interview. createdAt
  • Solution:
    • update logic, to be similar like we send interview coming up notification sendInterviewComingUpNotifications
    • update cron timing CRON_INTERVIEW_SCHEDULE_REMINDER to '*/5 * * * *' - so it run every 5 minutes
    • and check if there any interviews with createdAt from now (including now) till 5 minutes later (not including)
    • and send notification for such interviews
  • Update demo script https://github.com/topcoder-platform/taas-apis/blob/dev/scripts/demo-email-notifications/index.js to tigger such notification for demo. DON"T break other demo examples in this script.
  • Update Postman Notification Demo so we can trigger this notification from Postman https://monosnap.com/file/3yifghvTy4mk5D0L8C1216W4dn4Cbl (don't break other).

@maxceem maxceem added the CF label Nov 5, 2021
@maxceem
Copy link
Contributor

maxceem commented Nov 5, 2021

@yoution this is also ready to pick up.

@maxceem maxceem changed the title Issues with interview schedule reminder notification [$60] Issues with interview schedule reminder notification Nov 5, 2021
@yoution
Copy link
Contributor

yoution commented Nov 5, 2021

@maxceem pleaae assign to me

@maxceem
Copy link
Contributor

maxceem commented Nov 5, 2021

@yoution it appears that this issue is blocked by another one topcoder-platform/taas-apis#618.

Please, hold on working on this issue until the other one is fixed, we are working on that.

@maxceem maxceem added Blocked and removed Blocked labels Nov 5, 2021
@maxceem
Copy link
Contributor

maxceem commented Nov 8, 2021

@yoution you may keep working on this issue, as blocking issue topcoder-platform/taas-apis#618 has been fixed.

@yoution
Copy link
Contributor

yoution commented Nov 9, 2021

@maxceem you said we should seach the interviews by startTimestampt,
but the status of current interview is scheduling, I think we should search by createdAt , please confirm?

@maxceem
Copy link
Contributor

maxceem commented Nov 9, 2021

@yoution you are right we have to use createdAt - updated task description.

@yoution
Copy link
Contributor

yoution commented Nov 9, 2021

@maxceem can we don't work on these two tasks

@maxceem
Copy link
Contributor

maxceem commented Nov 9, 2021

ok @yoution, no need

yoution added a commit to yoution/taas-apis that referenced this issue Nov 9, 2021
@maxceem
Copy link
Contributor

maxceem commented Nov 9, 2021

Hey, @yoution I've checked your PR, I think my task was not clear.

  • We still have to send reminders only after 1 day (INTERVIEW_REMINDER_DAY_AFTER) after the interview was created. So if the user was invited but didn't reply - we send a reminder.
  • After INTERVIEW_REMINDER_DAY_AFTER we have to send this reminder every day (configured by INTERVIEW_REMINDER_FREQUENCY)

Previously it was implemented like this, but it sent reminders at the same time for all people. But we have to count time from createdAt for each individual interview.

I would update the payment for this task to $100, would you be willing to update it accordingly?

yoution added a commit to yoution/taas-apis that referenced this issue Nov 9, 2021
maxceem added a commit to topcoder-platform/taas-apis that referenced this issue Nov 17, 2021
@maxceem maxceem changed the title [$60] Issues with interview schedule reminder notification [$100] Issues with interview schedule reminder notification Nov 17, 2021
@sdgun
Copy link
Author

sdgun commented Nov 26, 2021

The issues are fixed.

image

@maxceem
Copy link
Contributor

maxceem commented Nov 26, 2021

Challenge https://www.topcoder.com/challenges/cd80fe0a-4073-42bd-8e24-7257d82ffd4a has been created for this ticket.

This is an automated message for maxceem via Topcoder X

@maxceem
Copy link
Contributor

maxceem commented Nov 26, 2021

Challenge https://www.topcoder.com/challenges/cd80fe0a-4073-42bd-8e24-7257d82ffd4a has been assigned to yoution.

This is an automated message for maxceem via Topcoder X

@maxceem
Copy link
Contributor

maxceem commented Nov 26, 2021

Payment task has been updated: https://www.topcoder.com/challenges/cd80fe0a-4073-42bd-8e24-7257d82ffd4a
Payments Complete
Winner: yoution
Copilot: maxceem
Challenge cd80fe0a-4073-42bd-8e24-7257d82ffd4a has been paid and closed.

This is an automated message for maxceem via Topcoder X

@maxceem maxceem reopened this Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants