feat: add rrHostSubsetIds to reschedule booking endpoint #27135
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
rrHostSubsetIdssupport to the reschedule booking endpoint (POST /v2/bookings/:bookingUid/reschedule), matching the existing implementation in the create booking endpoint.This allows API consumers to specify a subset of round-robin hosts when rescheduling a booking, enabling them to control which hosts are considered for the rescheduled booking.
Changes
rrHostSubsetIdsoptional property toRescheduleBookingInput_2024_08_13with proper validation decorators (@IsArray,@IsInt)transformInputRescheduleBookingto pass throughrrHostSubsetIdsto the booking handlerrrHostSubsetIdsto force a different hostThe implementation mirrors the existing pattern in
CreateBookingInput_2024_08_13.Mandatory Tasks (DO NOT REMOVE)
@ApiHideProperty().How should this be tested?
rrHostSubsetIdscontaining one hostrrHostSubsetIdscontaining a different hostThe e2e test
should reschedule a team RR booking and use rrHostSubsetIds to force teamUser2 as hostinteam-bookings.e2e-spec.tsvalidates this flow.Checklist
Human Review Checklist
handleNewBooking) properly usesrrHostSubsetIdsduring reschedule operationsLink to Devin run: https://app.devin.ai/sessions/597820cc9cef4eb688548701f95063a5
Requested by: @ThyMinimalDev