Browse Source

feat(setup-wizard): Remove project create feature check (#83905)

- closes https://github.com/getsentry/sentry-wizard/issues/549
ArthurKnaus 1 month ago
parent
commit
63024d3810

+ 0 - 5
static/app/views/setupWizard/utils/features.tsx

@@ -1,5 +0,0 @@
-import type {Organization} from 'sentry/types/organization';
-
-export function hasSetupWizardCreateProjectFeature(organization: Organization) {
-  return organization.features.includes('setup-wizard-create-project');
-}

+ 1 - 3
static/app/views/setupWizard/wizardProjectSelection.tsx

@@ -18,7 +18,6 @@ import {useDebouncedValue} from 'sentry/utils/useDebouncedValue';
 import {useCompactSelectOptionsCache} from 'sentry/views/insights/common/utils/useCompactSelectOptionsCache';
 import {ProjectLoadingError} from 'sentry/views/setupWizard/projectLoadingError';
 import type {OrganizationWithRegion} from 'sentry/views/setupWizard/types';
-import {hasSetupWizardCreateProjectFeature} from 'sentry/views/setupWizard/utils/features';
 import {useCreateProjectFromWizard} from 'sentry/views/setupWizard/utils/useCreateProjectFromWizard';
 import {useOrganizationDetails} from 'sentry/views/setupWizard/utils/useOrganizationDetails';
 import {useOrganizationProjects} from 'sentry/views/setupWizard/utils/useOrganizationProjects';
@@ -87,10 +86,9 @@ export function WizardProjectSelection({
 
   const isCreationEnabled =
     orgDetailsRequest.data &&
+    canCreateProject(orgDetailsRequest.data) &&
     teamsRequest.data &&
     teamsRequest.data.length > 0 &&
-    hasSetupWizardCreateProjectFeature(orgDetailsRequest.data) &&
-    canCreateProject(orgDetailsRequest.data) &&
     platformParam;
 
   const updateWizardCacheMutation = useUpdateWizardCache(hash);