Skip to content

fix(room_booking_approval): [PPT-2340] fix self[:approval_required]#605

Merged
stakach merged 4 commits intomasterfrom
fix/PPT-2340
Apr 22, 2026
Merged

fix(room_booking_approval): [PPT-2340] fix self[:approval_required]#605
stakach merged 4 commits intomasterfrom
fix/PPT-2340

Conversation

@chillfox
Copy link
Copy Markdown
Contributor

No description provided.

@chillfox chillfox self-assigned this Apr 21, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes RoomBookingApproval so tentative (approval-required) events are sourced from the Bookings driver’s :tentative cache instead of :bookings, aligning with how the Bookings driver stores tentative meetings by default.

Changes:

  • Update RoomBookingApproval#find_bookings_for_approval to read from the tentative status key.
  • Add/expand a focused driver spec to assert tentative events populate approval_required.
  • Disable Ameba’s Naming/AccessorMethodName rule in repo config (to avoid get_*/set_* accessor naming offenses).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
drivers/place/room_booking_approval_spec.cr Adds mocks + regression test asserting tentative events appear in approval_required.
drivers/place/room_booking_approval.cr Switches lookup from bookings to tentative when building the approval cache.
.ameba.yml Disables Naming/AccessorMethodName to prevent get_*/set_* naming from being linted.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread drivers/place/room_booking_approval_spec.cr Outdated
Comment thread .ameba.yml Outdated
@chillfox chillfox marked this pull request as ready for review April 21, 2026 06:18
@chillfox chillfox requested review from naqvis and stakach April 21, 2026 06:24
Copy link
Copy Markdown
Member

@stakach stakach left a comment

Choose a reason for hiding this comment

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

LGTM

@stakach stakach merged commit e400cc8 into master Apr 22, 2026
2 of 6 checks passed
@stakach stakach deleted the fix/PPT-2340 branch April 22, 2026 05:00
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.

3 participants