Skip to content

Seated booking rescheduling.#5427

Merged
emrysal merged 140 commits intomainfrom
fix/reschedule-on-booking-with-seats-5340
Mar 14, 2023
Merged

Seated booking rescheduling.#5427
emrysal merged 140 commits intomainfrom
fix/reschedule-on-booking-with-seats-5340

Conversation

@alannnc
Copy link
Copy Markdown
Contributor

@alannnc alannnc commented Nov 8, 2022

What does this PR do?

  • Add new table bookingSeatsReferences that saves every data of the new attendee in a new row so it can be linked to a single booking. This data wasn't being saved anywhere.
  • Book page can now receive a rescheduleUid as a uniqueAttendeeId too that links to a bookingSeatReference
  • Reschedule logic for booking with seats
  • Adds test to reschedule with seats

Fixes #5340

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

  • Config event type as seats with booking
  • Reserve/cancel/reschedule flows

Checklist

  • I haven't performed a self-review of my own code and corrected any misspellings
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel bot commented Nov 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
cal ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 14, 2023 at 4:09AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
ui ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2023 at 4:09AM (UTC)

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Nov 8, 2022

  • Reschedule logic for booking with seats
  • Fixing rescheduling bug when attendee is not the last one in a booking with seats (attendees were being removed from event calendar)

@alannnc alannnc changed the title WIP-already-reschedule-success-emails-missing WIP-reschedule-on-booking-with-seats Nov 8, 2022
@emrysal
Copy link
Copy Markdown
Contributor

emrysal commented Mar 13, 2023

After having booked Seat one, it still shows 2 / 2:
image

Edit: This happens only if you refresh the page after clicking back, if you click on the availability page to go to the booking page it is properly updated.

@emrysal
Copy link
Copy Markdown
Contributor

emrysal commented Mar 13, 2023

image

This could be correct, I have booking entries per each seat.

@alannnc
Copy link
Copy Markdown
Contributor Author

alannnc commented Mar 13, 2023

@emrysal Yeah it's part of the same bug I think, right now it's creating 2 booking when it should be one with many bookingSeats.

Copy link
Copy Markdown
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now passes all tests

  • Booking initial seat creates the booking
  • Booking secondary seat creates a second bookingSeat
  • Rescheduling by bookingUid reschedules the entire booking and all attendees
  • Rescheduling by attendeeUuid reschedules just the attendee
  • Cancelling by attendeeUuid doesn't cancel the event for everyone
  • Cancelling as an organizer does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only High priority Created by Linear-GitHub Sync ❗️ migrations contains migration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-310] As an attendee I can't manage a multi-seat booking through my email if someone joined after me.

6 participants