calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.21k stars 7.53k forks source link

[CAL-4028] Unable to reschedule due to rescheduleUid not being picked up although present in the url params #15665

Closed theonly1me closed 3 days ago

theonly1me commented 2 months ago

Discussed in #15640 originally posted by @Goul-duKat

Good day

We can not reschedule at all ! Immagine 2024-07-03 152211

We are using all anonymous incoming users, so they don't need and will be not log ins in the system just managed on the single appointment for the personal information like email.

We started using cal.com with version 4.1.12 and now we updated to the 4.2.3, we seen this : fix: Seat Attendee Rescheduling Logic by @joeauyeung in https://github.com/calcom/cal.com/pull/14784

But it was broken and still broken on last version.

Someone can take a look why we get the blue text and impossible to reschedule ?

Thanks Cheers

Originally posted by @Goul-duKat in https://github.com/calcom/cal.com/issues/15640#issuecomment-2206113744

CAL-4028

dosubot[bot] commented 2 months ago

The issue you're encountering, where rescheduling is not possible due to no available users despite the rescheduleUid being present in the URL parameters, can be caused by several conditions in the code:

  1. Booking Status: If the booking status is CANCELLED or REJECTED, rescheduling is not allowed.
  2. Event Type and Dynamic Event Slug Reference: Both booking?.eventType and booking?.dynamicEventSlugRef must be present.
  3. Seated Event without Seat Reference UID: For seated events, a seat reference UID must be provided, and the user must be logged in and either a host or the owner of the event type.
  4. User Availability: The buildRescheduleLink function ensures that the reschedule link is built correctly based on the users associated with the event. If no users are available, the reschedule link cannot be generated.

To resolve this issue, ensure the following:

Additionally, ensure that the rescheduleUid matches the current event type. If these conditions are met, the redirection to the reschedule page should work correctly [1][2][3][4].

To continue talking to Dosu, mention @dosu.

secretkontributer commented 2 months ago

Can i work on this issue ?

Goul-duKat commented 2 months ago

The service is open on internet if someone want to test it, just i will not publish the whole url here for fear of DDOS or other attack, possible get in contact trough PM and i will give you the internet link for the site and you can try schedule and move the appointments

Just let me know of your tests and appointment to purge from system after the test, is already in production and touching our calendars

cheers

Goul-duKat commented 2 months ago

The issue you're encountering, where rescheduling is not possible due to no available users despite the rescheduleUid being present in the URL parameters, can be caused by several conditions in the code:

1. **Booking Status**: If the booking status is `CANCELLED` or `REJECTED`, rescheduling is not allowed.

Just freshly created, not cancelled or rejected.

[...] Technical stuff, i'm not with hands trough the code, we just cooked a dokker image to use for an office schedule

To resolve this issue, ensure the following:

* The booking is not cancelled or rejected.

They are not

* The booking has a valid event type or dynamic event slug reference.

* For seated events, ensure a seat reference UID is provided, and the user is either logged in and is a host or the owner of the event type.

* Ensure that there are available users associated with the event to generate the reschedule link.

We are using the end page after you schedule, or the email link when you got the appoinment All your questions are more technical In the server there is just 1 user, the admin who have the office schedule published, no other users nor team configured.

Goul-duKat commented 1 month ago

This issue is related to : https://github.com/calcom/cal.com/issues/15862

Using together limits and reschedule give off this problem

I did removed the limits now and i can reschedule all the appointments

CarinaWolli commented 3 days ago

Using together limits and reschedule give off this problem

Thanks for confirming this. Will close this issue in favor of: https://github.com/calcom/cal.com/issues/14584