diff --git a/.env b/.env index 69ee53c..643c347 100644 --- a/.env +++ b/.env @@ -114,7 +114,6 @@ FEATURE_SANITIZE_UPLOADS=false FEATURE_STAMP_INVOICES=false FEATURE_DATEV_EMAIL=false FEATURE_MYEP_LOGIN=false -FEATURE_APPLICATION_FORM_TEAMER_PROVISIONING=false UPLOAD_REPLACEMENT_FILE=assets/pdf/chicken.pdf diff --git a/config/packages/flagception.yaml b/config/packages/flagception.yaml index 4c28445..4d658e4 100644 --- a/config/packages/flagception.yaml +++ b/config/packages/flagception.yaml @@ -13,8 +13,3 @@ flagception: myep_login: default: false env: FEATURE_MYEP_LOGIN - # Provisioning writes to the production CRM and cannot be rehearsed: the teamer selection - # is only changeable there. Ships off. - application_form_teamer_provisioning: - default: false - env: FEATURE_APPLICATION_FORM_TEAMER_PROVISIONING diff --git a/src/Controller/Admin/ApplicationFormSubmission/CreateTeamerController.php b/src/Controller/Admin/ApplicationFormSubmission/CreateTeamerController.php index 6f72eeb..8424369 100644 --- a/src/Controller/Admin/ApplicationFormSubmission/CreateTeamerController.php +++ b/src/Controller/Admin/ApplicationFormSubmission/CreateTeamerController.php @@ -7,7 +7,6 @@ use App\Htmx\HxRedirectResponse; use App\Model\TeamerProvisioningResult; use App\Service\Teamer\TeamerProvisioner; use App\Service\Teamer\TeamerProvisioningException; -use Flagception\Manager\FeatureManagerInterface; use Psr\Log\LoggerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; @@ -19,14 +18,14 @@ use Symfony\Component\Security\Http\Attribute\IsGranted; * Makes a teamer out of an applicant who passed the interview: one click, because the submission * carries everything the CRM needs and there is nothing left for the reviewer to type. * - * Behind a feature flag, because provisioning writes to the production CRM and cannot be rehearsed - * anywhere else - the teamer selection is only changeable there. + * The click writes to the CRM for real - three writes, none of them undoable from here - so what + * goes to BusPro is shown in the confirmation before it goes, and TeamerProvisioner refuses a + * submission it cannot provision before sending anything. */ class CreateTeamerController extends AbstractController { public function __construct( private readonly TeamerProvisioner $provisioner, - private readonly FeatureManagerInterface $featureManager, private readonly LoggerInterface $logger, ) { } @@ -35,10 +34,6 @@ class CreateTeamerController extends AbstractController #[IsGranted('ROLE_TEAM_ADMIN')] public function index(ApplicationFormSubmission $submission, Request $request): Response { - if (false === $this->featureManager->isActive('application_form_teamer_provisioning')) { - throw $this->createNotFoundException('Teamer provisioning is not enabled'); - } - if (false === $request->isMethod(Request::METHOD_POST)) { return $this->render('admin/application_form_submission/modal_create_teamer.html.twig', [ 'submission' => $submission, diff --git a/templates/admin/application_form_submission/detail.html.twig b/templates/admin/application_form_submission/detail.html.twig index 36945c4..32ae36d 100644 --- a/templates/admin/application_form_submission/detail.html.twig +++ b/templates/admin/application_form_submission/detail.html.twig @@ -106,41 +106,39 @@ {{ form_rest(callsForm) }} {{ form_end(callsForm) }} - {% if feature('application_form_teamer_provisioning') or submission.teamerCreatedAt %} -