Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Default the box office feature flag to off
Dave Earley8c582a23215c
diff --git a/backend/database/migrations/2026_09_23_000001_add_box_office_feature_flag.php b/backend/database/migrations/2026_09_23_000001_add_box_office_feature_flag.phpindex 03f5cfc9d..6633a1e1a 100644--- a/backend/database/migrations/2026_09_23_000001_add_box_office_feature_flag.php+++ b/backend/database/migrations/2026_09_23_000001_add_box_office_feature_flag.php@@ -11,7 +11,7 @@ return new class extends MigrationDB::table('feature_flags')->insertOrIgnore(['key' => 'box_office',- 'enabled_by_default' => true,+ 'enabled_by_default' => false,'created_at' => now(),'updated_at' => now(),]);diff --git a/backend/tests/Feature/BoxOffice/BoxOfficeOrganizerSessionTest.php b/backend/tests/Feature/BoxOffice/BoxOfficeOrganizerSessionTest.phpindex b9232bc13..504af81fb 100644--- a/backend/tests/Feature/BoxOffice/BoxOfficeOrganizerSessionTest.php+++ b/backend/tests/Feature/BoxOffice/BoxOfficeOrganizerSessionTest.php@@ -3,6 +3,7 @@namespace Tests\Feature\BoxOffice;use HiEvents\DomainObjects\Enums\EventType;+use HiEvents\DomainObjects\Enums\FeatureFlag;use HiEvents\DomainObjects\Status\EventStatus;use HiEvents\Enterprise\BoxOffice\Services\Domain\BoxOfficePinService;use HiEvents\Models\User;@@ -11,6 +12,7 @@ use Illuminate\Support\Facades\DB;use Illuminate\Testing\TestResponse;use PHPOpenSourceSaver\JWTAuth\Facades\JWTAuth;use Symfony\Component\HttpFoundation\Response as ResponseCodes;+use Tests\Concerns\ManagesFeatureFlags;use Tests\Feature\Support\InsertsRecurringEventRows;use Tests\TestCase;@@ -18,6 +20,7 @@ class BoxOfficeOrganizerSessionTest extends TestCase{use DatabaseTransactions;use InsertsRecurringEventRows;+ use ManagesFeatureFlags;private string $boxOfficeShortId;@@ -34,6 +37,7 @@ class BoxOfficeOrganizerSessionTest extends TestCaseDB::table('events')->where('id', $this->eventId)->update(['status' => EventStatus::LIVE->name]);DB::table('event_settings')->insert(['event_id' => $this->eventId, 'created_at' => now(), 'updated_at' => now()]);$this->insertOccurrence();+ $this->setFeatureFlagOverride($this->accountId, FeatureFlag::BOX_OFFICE, true);$this->boxOfficeShortId = 'bo_'.uniqid();$this->boxOfficeId = DB::table('box_offices')->insertGetId([diff --git a/backend/tests/Feature/BoxOffice/BoxOfficePinLockoutTest.php b/backend/tests/Feature/BoxOffice/BoxOfficePinLockoutTest.phpindex 27a9b7cd2..185bdb01e 100644--- a/backend/tests/Feature/BoxOffice/BoxOfficePinLockoutTest.php+++ b/backend/tests/Feature/BoxOffice/BoxOfficePinLockoutTest.php@@ -3,6 +3,7 @@namespace Tests\Feature\BoxOffice;use HiEvents\DomainObjects\Enums\EventType;+use HiEvents\DomainObjects\Enums\FeatureFlag;use HiEvents\DomainObjects\Status\EventStatus;use HiEvents\Enterprise\BoxOffice\Services\Domain\BoxOfficePinService;use HiEvents\Models\User;@@ -11,6 +12,7 @@ use Illuminate\Support\Facades\DB;use Illuminate\Testing\TestResponse;use PHPOpenSourceSaver\JWTAuth\Facades\JWTAuth;use Symfony\Component\HttpFoundation\Response as ResponseCodes;+use Tests\Concerns\ManagesFeatureFlags;use Tests\Feature\Support\InsertsRecurringEventRows;use Tests\TestCase;@@ -18,6 +20,7 @@ class BoxOfficePinLockoutTest extends TestCase{use DatabaseTransactions;use InsertsRecurringEventRows;+ use ManagesFeatureFlags;private const PIN = '482915';@@ -34,6 +37,7 @@ class BoxOfficePinLockoutTest extends TestCaseDB::table('events')->where('id', $this->eventId)->update(['status' => EventStatus::LIVE->name]);DB::table('event_settings')->insert(['event_id' => $this->eventId, 'created_at' => now(), 'updated_at' => now()]);$this->insertOccurrence();+ $this->setFeatureFlagOverride($this->accountId, FeatureFlag::BOX_OFFICE, true);$this->boxOfficeShortId = 'bo_'.uniqid();$this->boxOfficeId = DB::table('box_offices')->insertGetId([