topcoder-platform / taas-app

TaaS App Front End
3 stars 24 forks source link

Interview is not getting cancelled/rescheduled when host cancels/reschedules the interview #579

Open sdgun opened 2 years ago

sdgun commented 2 years ago

Steps Host schedules an interview Guest select an available time Host cancels/reschedules the interview Check the interview status

Interview status is still 'scheduled'(should be changed to cancelled in case of cancellation) and no emails on cancellation/rescheduling are sent too

Ex for cancellation- https://platform.topcoder-dev.com/taas/myteams/18933/positions/b64547a6-8433-42c3-9609-cbe6fef5da93/candidates/interviews

If trying to cancel/reschedule using the same link again, can see the below: image

https://user-images.githubusercontent.com/4592712/143387742-3a326928-59d3-46e0-89e4-dc7b930d7a16.mp4

maxceem commented 2 years ago

@sdgun this has to be fixed now. Ready for QA.

sdgun commented 2 years ago

@maxceem This issue still exists, when cancelling the interview, it doesn't get canceled. When trying cancel again seeing an error. The video below shows my 2nd attempt to cancel, it didn't do anything in the first try

Interview - https://platform.topcoder-dev.com/taas/myteams/19029/positions/fc08dfdb-6255-471c-9700-ba2debe78693/candidates/interviews

JC - taasintake300

Host - taasintake1000

interview Id: 9bce2a8d-cd86-45a3-ba6a-8d5bdc7bfc60

https://user-images.githubusercontent.com/4592712/143812111-4d4a331e-95b5-47ce-9ff7-9cd27c72e16e.mp4

maxceem commented 2 years ago

@sdgun all the interviews which were scheduled previously before fixing the issue might be broken and we cannot cancel them anymore. So the only way to test the fix for this issue is to create a new interview and try to test it.

sdgun commented 2 years ago

@maxceem This is a new team and a new interview I created today for testing

maxceem commented 2 years ago

@sdgun got it. May I know if you rescheduled this interview before canceling?

Or you just scheduled it and then directly tried to cancel without rescheduling?

sdgun commented 2 years ago

@maxceem just scheduled it and then directly tried to cancel without rescheduling

maxceem commented 2 years ago

@sdgun I'm trying to reproduce it by myself using my users, but with no luck. To help me debugging it, may I ask you to repeat these steps one more time using the same users?

sdgun commented 2 years ago

@maxceem I executed the above step for the same users, in the 1st interview cancellation, I waited for 10 mins and it worked, 2nd I cancelled immediately without issues right after scheduling, but the 3rd one(which I cancelled without waiting) had the same issue.

Interview: https://platform.topcoder-dev.com/taas/myteams/19029/positions/d5f777b6-14a3-4ca9-b20d-7b1f4172c2c4/candidates/interviews

https://user-images.githubusercontent.com/4592712/143891790-93c6f139-6975-467f-9510-2155b7f85c61.mp4

maxceem commented 2 years ago

Thanks a lot @sdgun this should help.

maxceem commented 2 years ago

@sdgun I can see that 3rd time when you've got error you clicked "cancel" button 2 times:

When first time you get this error here https://github.com/topcoder-platform/taas-app/issues/579#issuecomment-981296284. Did you click "cancel" button 2 times? Fist success and second with error? Or did it return error when you click "cancel" button the first time?

sdgun commented 2 years ago

@maxceem No I only clicked cancel once in first time.

sdgun commented 2 years ago

Verified in Dev env, this issue is fixed.