Skip to content
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

fix: Allow editing guests when rescheduling or editing a booking #9878

Merged
merged 13 commits into from
Jul 12, 2023

Conversation

jemiluv8
Copy link
Contributor

@jemiluv8 jemiluv8 commented Jul 2, 2023

What does this PR do?

It allows users to add/remove from the gusts list when rescheduling a booking

Fixes #9167
/claim #9167

Editing Guests
https://www.loom.com/share/318584ebf2b44745a10867955a5484e8?sid=68ee2b32-9e64-4813-8587-90e13ca4dec2

Viewing New Booking Success Screen - To confirm edited guests
https://www.loom.com/share/e27797530e044f39a87bfdbf43d2adc4

Type of change

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

How should this be tested?

  • Book a meeting
  • On the successful booking page click "Reschedule"
  • Select new date and time for meeting
  • On the confirmation screen, you should now see guests added
  • You should also be able to remove existing guests and add new ones

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link

vercel bot commented Jul 2, 2023

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

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2023 8:59am

@vercel
Copy link

vercel bot commented Jul 2, 2023

@jemiluv8 is attempting to deploy a commit to the cal-staging Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added bookings area: bookings, availability, timezones, double booking High priority Created by Linear-GitHub Sync ✨ feature New feature or request 💎 Bounty A bounty on Algora.io labels Jul 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@jemiluv8 jemiluv8 changed the title Fix: Allow editing guests when rescheduling or editing a booking fix: Allow editing guests when rescheduling or editing a booking Jul 3, 2023
…ndees to the "rescheduled" booking to ensure that guests added or removed are used for the "rescheduled" booking
@jemiluv8 jemiluv8 marked this pull request as ready for review July 3, 2023 10:30
Copy link
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

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

@jemiluv8 Can you help us here with a self review?
I think I should make some test for this one too. Don't want bookers can edit reschedule if not booking owner.

@jemiluv8
Copy link
Contributor Author

jemiluv8 commented Jul 4, 2023

@alannnc, I've completed the self review.

@shivamklr shivamklr self-assigned this Jul 7, 2023
shivamklr
shivamklr previously approved these changes Jul 7, 2023
Copy link
Contributor

@shivamklr shivamklr left a comment

Choose a reason for hiding this comment

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

Tested locally. Works as expected.

@shivamklr shivamklr requested review from shivamklr and removed request for a team and alannnc July 10, 2023 11:32
@shivamklr shivamklr dismissed their stale review July 10, 2023 11:34

Need to retest for the new changes.

Copy link
Contributor

@shivamklr shivamklr left a comment

Choose a reason for hiding this comment

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

@jemiluv8 Kindly resolve the conflicts.

@jemiluv8
Copy link
Contributor Author

Merge conflicts resolved.

Copy link
Contributor

@shivamklr shivamklr left a comment

Choose a reason for hiding this comment

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

LGTM.

@shivamklr shivamklr merged commit 6d284ae into calcom:main Jul 12, 2023
26 of 30 checks passed
fritterhoff pushed a commit to hm-edu/cal.com that referenced this pull request Jul 25, 2023
…com#9878)

* Allow editing guests when rescheduling or editing

* lint fix

* modify reschedule logic that assigned originalRescheduledBooking.attendees to the "rescheduled" booking to ensure that guests added or removed are used for the "rescheduled" booking

---------

Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookings area: bookings, availability, timezones, double booking 💎 Bounty A bounty on Algora.io ✨ feature New feature or request High priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

At the time of edit or rescheduling event, there is no option to add guest
3 participants