Repository navigation
fix(workflows): cross-role defects, venue linkage, claim resolution & 107-test E2E matrix - #61
Merged
Merged
Conversation
… e2e reliability - Admin API: implement list and resolve endpoints for venue ownership claims and venues list with proper status casting and claimant fields - Organiser & Events: support venue_id linkage during draft creation, update, and publish to events/event_sessions tables - Venue: add venue photo upload endpoint with 2MB limit and magic byte sniffing; link venue command centre to organiser draft wizard - Attendee Bookings: enforce CSRF protection on booking cancellations; enforce ticket tier min_per_booking, sales_start_at, and sales_end_at constraints - HTTP & Network: handle oversized payload with 413 without socket abort (ECONNRESET) - Test Matrix: add 107-scenario God-Mode E2E workflow matrix covering all roles, error conditions, and concurrency
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…workflow matrix - Enforce venue photo upload ownership binding, draft privacy isolation, and cleanup protection - Enforce authoritative venue usage permissions on organiser drafts, updates, and publishing - Protect venue ownership claims under super admin role and resolve claims atomically with audit logging - Strengthen integration test matrix with true migration 031 idempotency and paid checkout fail-closed tests - Add real browser Playwright E2E workflows in e2e/god-mode-workflows.spec.js
… isolated schema runner test
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.
Summary of Changes
This PR delivers end-to-end reliability, bug fixes, and safety hardening across all NIGHTLIFEZ user workflows (Attendee, Organiser, Venue Partner, Admin) as part of the God Mode engineering audit.
1. Admin Venue Management & Ownership Claims
GET /api/admin/venueswith support for?status=filtering (cast PostgreSQL enum to text to prevent type comparison errors).GET /api/admin/venue-claimswith status filtering and pagination, selectingclaimant_telegram_user_idfrom users.POST /api/admin/venue-claims/:id/resolvesupporting atomicapproved(transfersvenues.org_idto claimant org, grantsmanage_venuecapability) andrejecteddecisions with full audit logging and RBAC (Super Admin only).WHERE status = 'active' AND onboarding_completed = true.2. Event-Venue Linkage
venueIdto organiser draft schema (DraftData,CreateBody,UpdateEventBody).events.venue_idandevent_sessions.venue_idupon draft publishing.venueIdin public event serialization (toPublicEvent)./organiser/new?venue_id=${state.venueId}.3. Attendee Booking & Ticketing Invariants
requireCsrf(req, user)).bookTier:min_per_booking,sales_start_at, andsales_end_at.4. Venue Photos & HTTP Upload Stability
POST /api/venue/photos(uploadVenuePhotoApi) with 2MB limit and magic byte sniffing (PNG, JPEG, WebP).readRawBodyandreadBinaryBodyto drain the incoming stream viareq.resume()on 413 payload excess rather than abrupt socket destruction (req.destroy()), preventingECONNRESETerrors.5. Discovery & Navigation Consistency
List Your Venuelink in header navigation and footer.v.status = 'active' AND v.onboarding_completed = true.6. Automated Verification Matrix
test/god-mode-e2e-workflow-matrix.test.js) spanning Sections A through H (Attendee, Organiser, Venue, Operations, Admin, Security, Mobile, Concurrency).