-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for Reschedule api as well. For Users who wants to reschedule booking rather fresh booking for 1st dose. #170
base: ext-dev/reschedule
Are you sure you want to change the base?
Conversation
…hedule booking rather fresh booking.
Hey, the current code works for rescheduling as is. You can try it. |
@catch-n-release : current code does not provide rescheduling option |
@vsachinv - Thank you for the PR! If I understand this correctly, to reschedule an appointment, a slot has to be available in the first place. So why not cancel and book? |
@pallupz If rescheduling is booking a new appointment for a beneficiary already having one, then the current code does, even if it's not explicit functionality. It's tested. |
@pallupz Please correct me if I have a wrong understanding.😅 |
@catch-n-release I agree that this may not be a necessary feature. I think the idea is to book another slot without having to go into the portal and canceling existing one manually. |
@pallupz I totally agree. But one doesn't even have to cancel the appointment. It books a new appointment for the same beneficiary (if not vaccinated). I think you have underestimated the power of your own code 😆. I can cross-check and send my findings to you. But then again, your call totally. 😁 |
oh thats interesting.. I hadn't tested it that way. So if we have already have an appointment, and try to book another one, it essentially works like canceling and booking? I thought that might throw some error. Can't help but wonder what was the point for this reschedule endpoint then?! |
@catch-n-release I have checked. it doesn't work if already schedule exist in the current code as it hits only schedule api not reschedule api. It fails. Due to this i couldn't book :( . Due that only i came up with changes :) . Check below response
|
@vsachinv - The portal does have cancel option but the design makes is super hard to find. For each beneficiary's section, who have an active appointment, there's a tiny 'x' button on the right top corner |
Nonetheless, this sort of a serious change. Will merge to another branch (not main) and test in the weekend. |
Could you please raise this to |
@pallupz Sure and thanks i will check that cancel option as well. |
I have no idea why they designed it so. Should've gone with a proper red button with actual text. |
I ran through the changes. Since the details needed are almost the same, what if instead of creating a separate function for rescheduling, we try to incorporate it into booking itself? That way we may be able to avoid a bunch of code duplication. |
@pallupz thanks. Now, I am able to cancel the slot from cowin. Yeah its not intuitive for cancel and also from Arogya Setu app on cancelling it was giving API error. Nevertheless thanks for helping me :). I have changed branch PR to ext-dev/reschedule as well. |
I haven't gone through in detail so not sure if that'd be possible. |
Essentially, if someone with active appointment tries to book, code will utilize Rescheduling endpoint. Otherwise, it will go with Booking endpoint. |
maybe @vsachinv is trying for second dose. I'm considering implementing it because the portal UI is not all intuitive. |
@pallupz No i was trying for first dose only just i didn't cancel existing appointments only. One of the appointment was of past date. |
@pallupz I didn't see any code of reschedule for already existing appointments. How it was using reschedule if appointment already exists? @catch-n-release I was trying on 19th May. |
No description provided.