Skip to content

Commit

Permalink
chore: remove feature flags (#5518)
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy authored May 7, 2024
1 parent 800b7dd commit 5cf0dff
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/api/src/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ VERCEL_REDIRECT_URI=https://dev.web.novu.co/auth/login
VERCEL_BASE_URL=https://api.vercel.com

FF_IS_DISTRIBUTED_LOCK_LOGGING_ENABLED=false
IS_TRANSLATION_MANAGER_ENABLED=false

STORE_NOTIFICATION_CONTENT=

Expand Down
1 change: 0 additions & 1 deletion apps/api/src/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ VERCEL_REDIRECT_URI=https://web.novu.co/auth/login
VERCEL_BASE_URL=https://api.vercel.com

FF_IS_DISTRIBUTED_LOCK_LOGGING_ENABLED=false
IS_TRANSLATION_MANAGER_ENABLED=false

STORE_NOTIFICATION_CONTENT=

Expand Down
2 changes: 0 additions & 2 deletions apps/api/src/.example.env
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ VERCEL_CLIENT_SECRET=
VERCEL_REDIRECT_URI=http://127.0.0.1:4200/auth/login
VERCEL_BASE_URL=https://api.vercel.com

IS_TRANSLATION_MANAGER_ENABLED=false

STORE_NOTIFICATION_CONTENT=true

INTERCOM_IDENTITY_VERIFICATION_SECRET_KEY=
Expand Down
1 change: 0 additions & 1 deletion apps/web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ REACT_APP_MAIL_SERVER_DOMAIN=
REACT_APP_LAUNCH_DARKLY_CLIENT_SIDE_ID=
IS_TEMPLATE_STORE_ENABLED=
IS_MULTI_PROVIDER_CONFIGURATION_ENABLED=
IS_MULTI_TENANCY_ENABLED=
REACT_APP_NOVU_GTM_ID=
6 changes: 2 additions & 4 deletions apps/web/src/components/layout/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { useSpotlightContext } from '../../providers/SpotlightProvider';
import { ChangesCountBadge } from './ChangesCountBadge';
import OrganizationSelect from '../../nav/OrganizationSelect/OrganizationSelect';
import { VisibilityOff } from './VisibilityOff';
import { IS_DOCKER_HOSTED } from '../../../config';

const usePopoverStyles = createStyles(({ colorScheme }) => ({
dropdown: {
Expand Down Expand Up @@ -73,8 +74,6 @@ export function SideNav({}: Props) {
const dark = colorScheme === 'dark';
const { addItem, removeItems } = useSpotlightContext();
const { classes } = usePopoverStyles();
const isMultiTenancyEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_MULTI_TENANCY_ENABLED);
const isTranslationManagerEnabled = useFeatureFlag(FeatureFlagsKeysEnum.IS_TRANSLATION_MANAGER_ENABLED);
const {
showOnboarding: showOnBoardingState,
isLoading: isLoadingShowOnBoarding,
Expand Down Expand Up @@ -115,7 +114,6 @@ export function SideNav({}: Props) {
{ icon: <Bolt />, link: ROUTES.WORKFLOWS, label: 'Workflows', testId: 'side-nav-templates-link' },
{
label: 'Tenants',
condition: isMultiTenancyEnabled,
icon: <Buildings />,
link: ROUTES.TENANTS,
testId: 'side-nav-tenants-link',
Expand All @@ -128,7 +126,7 @@ export function SideNav({}: Props) {
},
{
label: 'Translations',
condition: isTranslationManagerEnabled,
condition: !IS_DOCKER_HOSTED,
icon: <Translation width={20} height={20} />,
link: ROUTES.TRANSLATIONS,
testId: 'side-nav-translations-link',
Expand Down
2 changes: 0 additions & 2 deletions libs/shared/src/types/feature-flags/feature-flags.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
export enum FeatureFlagsKeysEnum {
IS_TEMPLATE_STORE_ENABLED = 'IS_TEMPLATE_STORE_ENABLED',
IS_MULTI_TENANCY_ENABLED = 'IS_MULTI_TENANCY_ENABLED',
IS_USE_MERGED_DIGEST_ID_ENABLED = 'IS_USE_MERGED_DIGEST_ID_ENABLED',
IS_API_RATE_LIMITING_ENABLED = 'IS_API_RATE_LIMITING_ENABLED',
IS_API_IDEMPOTENCY_ENABLED = 'IS_API_IDEMPOTENCY_ENABLED',
IS_TRANSLATION_MANAGER_ENABLED = 'IS_TRANSLATION_MANAGER_ENABLED',
IS_API_EXECUTION_LOG_QUEUE_ENABLED = 'IS_API_EXECUTION_LOG_QUEUE_ENABLED',
IS_BILLING_ENABLED = 'IS_BILLING_ENABLED',
IS_ECHO_ENABLED = 'IS_ECHO_ENABLED',
Expand Down

0 comments on commit 5cf0dff

Please sign in to comment.