-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
feat: Rerouting a booking with corrected responses #17074
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
E2E results are ready! |
4919e31
to
f0c6e94
Compare
24f52f5
to
ce6a721
Compare
@@ -722,7 +780,7 @@ const FirstAttendee = ({ | |||
className=" hover:text-blue-500" | |||
href={`mailto:${user.email}`} | |||
onClick={(e) => e.stopPropagation()}> | |||
{user.name} | |||
{user.name || user.email} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes user not shown in the list if it doesn't have name set.
type Props = { | ||
form: SerializableForm<App_RoutingForms_Form>; | ||
export type FormInputFieldsProps = { | ||
form: Pick<SerializableForm<App_RoutingForms_Form>, "fields">; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ask for what you need.
@@ -14,7 +14,7 @@ export function findMatchingRoute({ | |||
form, | |||
response, | |||
}: { | |||
form: SerializableForm<App_RoutingForms_Form>; | |||
form: Pick<SerializableForm<App_RoutingForms_Form>, "routes" | "fields">; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ask for what is needed.
@@ -453,11 +454,13 @@ const Route = ({ | |||
} | |||
if (option.value !== "custom") { | |||
setRoute(route.id, { | |||
action: { ...route.action, value: option.value }, | |||
action: { ...route.action, value: option.value, eventTypeId: option.eventTypeId }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we store eventTypeId as well in routing to allow Rerouting to easily know which eventType is it rerouting to. Instead of it having to query by event slug.
@@ -121,7 +121,7 @@ export async function findTeamMembersMatchingAttributeLogicOfRoute({ | |||
getFieldResponse, | |||
}); | |||
|
|||
if (!attributesQueryValue) { | |||
if (raqbQueryValueUtils.isQueryValueEmpty(attributesQueryValue)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attributesQueryValue could be an object but still without any rule. Better check for perf improvement.
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (10/17/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (10/17/24)1 reviewer was added to this PR based on Keith Williams's automation. |
if (!eventType.seatsPerTimeSlot && originalRescheduledBooking?.uid) { | ||
await prisma.booking.update({ | ||
where: { | ||
id: originalRescheduledBooking.id, | ||
}, | ||
data: { | ||
rescheduled: true, | ||
status: BookingStatus.CANCELLED, | ||
rescheduledBy: reqBody.rescheduledBy, | ||
}, | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been moved to createBooking to make it a part of transaction.
It has happened during testing that new booking creation failed but original booking got cancelled which is inconsistent state.
* Who uses it - | ||
* 1. We need to be able to decide which booking can have a 'Reroute' action | ||
*/ | ||
routedFromRoutingFormReponse: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment to easily know why certain nested query was needed.
ec2f98a
to
991b32a
Compare
Icon test seems to be failing maybe due to the new icon addition. Not sure how to fix it. @zomars |
What does this PR do?
Fixes CAL-4498
Loom Demo - With new UI Changes
Old Loom Demo - Not updated with UI/UX changes but should work
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
See Loom
Review Ask
While reviewing please make sure to specifically review that it doesn't break any existing behaviour