Skip to content

fix(api): return original email without OAuth suffix in bookings - #4

Open
tomerqodo wants to merge 2 commits into
codex_full_base_fixapi_return_original_email_without_oauth_suffix_in_bookings_pr4from
codex_full_head_fixapi_return_original_email_without_oauth_suffix_in_bookings_pr4
Open

fix(api): return original email without OAuth suffix in bookings#4
tomerqodo wants to merge 2 commits into
codex_full_base_fixapi_return_original_email_without_oauth_suffix_in_bookings_pr4from
codex_full_head_fixapi_return_original_email_without_oauth_suffix_in_bookings_pr4

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#4

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6968d6a13

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 421 to +424
return this.getOutputRecurringSeatedBooking(databaseBooking, showAttendees);
});

return transformed.sort((a, b) => new Date(a.start).getTime() - new Date(b.start).getTime());
return transformed;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore deterministic ordering for recurring seated bookings

In getOutputRecurringSeatedBookings you now return the mapped array unsorted. The IDs passed in are sourced from bookings.repository.ts#getRecurringByUidWithAttendeesAndUserAndEvent, which uses Prisma findMany without orderBy, so the DB return order is not guaranteed. That means GET /v2/bookings/{bookingUid} for a recurring seated booking can now return bookings in arbitrary order between calls, whereas it previously sorted by start. Consider restoring the start sort here or adding orderBy in the repository to keep a stable chronological response.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant