Code Review Bench PR #25593 - fix(api): return original email without OAuth suffix in bookings#4
Conversation
| }); | ||
|
|
||
| return transformed.sort((a, b) => new Date(a.start).getTime() - new Date(b.start).getTime()); | ||
| return transformed; |
There was a problem hiding this comment.
⚠️ Bug: Sort removed from getOutputRecurringSeatedBookings
The .sort() call that ordered recurring seated bookings by start time was removed from getOutputRecurringSeatedBookings(), but the sibling method getOutputRecurringBookings() (line 243) still sorts its results by start time. Similarly, getOutputCreateRecurringSeatedBookings() (line 448) also sorts by start. This creates an inconsistency where recurring seated bookings may be returned in a different order depending on which method is called. The sort removal appears unintentional as part of this PR (which is focused on adding displayEmail fields, not changing sort behavior).
Was this helpful? React with 👍 / 👎
| return transformed; | |
| return transformed.sort((a, b) => new Date(a.start).getTime() - new Date(b.start).getTime()); |
- Apply suggested fix
There was a problem hiding this comment.
Configure merge blocking · Maintainers can dismiss this review. Gitar never approves changes.
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
Benchmark PR for Gitar evaluation
Original PR: agentic-review-benchmarks#4
fix(api): return original email without OAuth suffix in bookings
Summary by Gitar
displayEmailtoBookingAttendee,BookingHost, andReassignedToDtoDTOs for clean email displaygetDisplayEmail()method using regex/\+[a-zA-Z0-9]{25}/to strip OAuth CUID suffixesdisplayEmailpropertyThis will update automatically on new commits.