feat: Implement booking audit producer-consumer pattern with feature flag support#25470
Merged
hariombalhara merged 2 commits intobooking-audit-more-infrafrom Dec 6, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 29, 2025
3 tasks
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
12 tasks
a561adf to
e81c326
Compare
a25404d to
068e516
Compare
- Restore all 11 action services (Accepted, Cancelled, Rejected, etc.) - Update BookingAuditViewerService to support all actions - Add changeSchemas for common change patterns This branch extends booking-audit-viewer-demo with full action support.
…flag support - Add BookingAuditProducerService interface for async audit task queueing - Implement BookingAuditTaskerProducerService using Tasker for local/background jobs - Add BookingAuditTaskConsumer for processing audit tasks with feature flag checks - Add booking-audit feature flag to control audit processing at organization level - Integrate BookingAuditProducerService into BookingEventHandlerService - Update BookingEventHandlerService to queue audit tasks for all booking events - Add bookingAudit task handler in Tasker infrastructure - Add organizationId parameter throughout audit flow for feature flag checks - Update Tasker to pass taskId to handlers for schema migration support - Add Task.updatePayload method for migrating old task schemas - Create DI containers and modules for producer and consumer services - Define BookingAuditTaskPayload and BookingAuditActionData types with discriminated unions - Consumer validates payloads, checks feature flags, and routes to action services - Add DI tokens for producer and consumer services This enables async, feature-flag gated booking audit processing.
e81c326 to
fde380a
Compare
068e516 to
c141adc
Compare
427f17a to
8fc2fb9
Compare
fde380a
into
booking-audit-more-infra
13 of 18 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
Video Demo (if applicable):
Image Demo (if applicable):
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist
Summary by cubic
Adds an async producer–consumer pipeline for booking audit events behind a feature flag. This decouples audit recording from booking flows and processes audits in the background with schema validation and migration.
Written for commit fde380a. Summary will update automatically on new commits.