diff --git a/apps/studio/components/interfaces/ProjectCreation/SecurityOptions.tsx b/apps/studio/components/interfaces/ProjectCreation/SecurityOptions.tsx index 7c0b44857dd..4636b9a450c 100644 --- a/apps/studio/components/interfaces/ProjectCreation/SecurityOptions.tsx +++ b/apps/studio/components/interfaces/ProjectCreation/SecurityOptions.tsx @@ -1,5 +1,4 @@ import Panel from 'components/ui/Panel' -import { usePHFlag } from 'hooks/ui/useFlag' import Link from 'next/link' import { UseFormReturn } from 'react-hook-form' import { @@ -22,10 +21,6 @@ interface SecurityOptionsProps { } export const SecurityOptions = ({ form, layout = 'horizontal' }: SecurityOptionsProps) => { - const rlsExperimentVariant = usePHFlag<'control' | 'test' | false | undefined>( - 'projectCreationEnableRlsEventTrigger' - ) - const shouldShowEnableRlsEventTrigger = rlsExperimentVariant === 'test' const dataApi = useWatch_Shadcn_({ control: form.control, name: 'dataApi' }) return ( @@ -65,32 +60,30 @@ export const SecurityOptions = ({ form, layout = 'horizontal' }: SecurityOptions )} /> - {shouldShowEnableRlsEventTrigger && ( - ( - - - field.onChange(value === true)} - /> - -
- - Enable automatic RLS - - - Create an event trigger that automatically enables Row Level Security on all - new tables in the public schema. - -
-
- )} - /> - )} + ( + + + field.onChange(value === true)} + /> + +
+ + Enable automatic RLS + + + Create an event trigger that automatically enables Row Level Security on all new + tables in the public schema. + +
+
+ )} + /> {!dataApi && ( { const { profile } = useProfile() const { data: currentOrg } = useSelectedOrganizationQuery() - const rlsExperimentVariant = usePHFlag<'control' | 'test' | false | undefined>( - 'projectCreationEnableRlsEventTrigger' - ) - const shouldShowEnableRlsEventTrigger = rlsExperimentVariant === 'test' const isFreePlan = currentOrg?.plan?.id === 'free' const canChooseInstanceSize = !isFreePlan @@ -250,9 +245,6 @@ const Wizard: NextPageWithLayout = () => { { instanceSize: form.getValues('instanceSize'), enableRlsEventTrigger: form.getValues('enableRlsEventTrigger'), - ...((rlsExperimentVariant === 'control' || rlsExperimentVariant === 'test') && { - rlsOptionVariant: rlsExperimentVariant, - }), dataApiEnabled: form.getValues('dataApi'), useOrioleDb: form.getValues('useOrioleDb'), }, @@ -389,15 +381,6 @@ const Wizard: NextPageWithLayout = () => { } }, [instanceSize, watchedInstanceSize, form]) - // Track exposure to RLS option experiment (only when explicitly assigned to a variant) - const shouldTrackRlsExposure = - !!currentOrg?.slug && (rlsExperimentVariant === 'control' || rlsExperimentVariant === 'test') - - useTrackExperimentExposure( - 'project_creation_rls_option', - shouldTrackRlsExposure ? rlsExperimentVariant : undefined - ) - return (