Skip to content

chore: Integrate confirmation booking audit#10

Open
tomerqodo wants to merge 2 commits into
codex_full_base_chore_integrate_confirmation_booking_audit_pr10from
codex_full_head_chore_integrate_confirmation_booking_audit_pr10
Open

chore: Integrate confirmation booking audit#10
tomerqodo wants to merge 2 commits into
codex_full_base_chore_integrate_confirmation_booking_audit_pr10from
codex_full_head_chore_integrate_confirmation_booking_audit_pr10

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#10

@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: 0626d90923

ℹ️ 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 +411 to +414
acceptedBookings = [
{
oldStatus: BookingStatus.ACCEPTED,
uid: booking.uid,

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 Preserve pre-accept status in audit payload

When confirming a non-recurring booking, acceptedBookings is populated with oldStatus: BookingStatus.ACCEPTED, which is the post-update status rather than the pre-update one. This makes the booking-audit event record a no-op transition (ACCEPTED -> ACCEPTED) even when the booking was previously PENDING, so downstream audit/reporting loses the true state change. Use the original booking.status (or capture it before the update) as oldStatus.

Useful? React with 👍 / 👎.

Comment on lines +444 to +447
rejectedBookings = updatedRecurringBookings.map((recurringBooking) => ({
uid: recurringBooking.uid,
oldStatus: recurringBooking.status,
}));

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 Use pre-update status for recurring rejection audit

In the recurring rejection flow, rejectedBookings is derived from updatedRecurringBookings after the status update, so oldStatus is captured as REJECTED. This loses the original status (typically PENDING) and records an incorrect transition in booking-audit events for recurring series. Use the statuses from unconfirmedRecurringBookings (captured before the update) for oldStatus.

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