1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-15 01:16:22 +02:00

refactor: remove public signup link feature flag (#2423)

## About the changes
Cleanup: remove feature flag.

Closes
[1-356/remove-feature-flag-from-the-code](https://linear.app/unleash/issue/1-356/remove-feature-flag-from-the-code)
This commit is contained in:
Tymoteusz Czech 2022-11-15 10:03:20 +01:00 committed by GitHub
parent 8b057a1466
commit a191313956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 13 deletions

View File

@ -6,19 +6,14 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
import { ADMIN } from 'component/providers/AccessProvider/permissions';
import { AdminAlert } from 'component/common/AdminAlert/AdminAlert';
import { InviteLinkBar } from './InviteLinkBar/InviteLinkBar';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
const UsersAdmin = () => {
const { hasAccess } = useContext(AccessContext);
const { uiConfig } = useUiConfig();
return (
<div>
<AdminMenu />
<ConditionallyRender
condition={Boolean(uiConfig?.flags?.publicSignup)}
show={<InviteLinkBar />}
/>
<InviteLinkBar />
<ConditionallyRender
condition={hasAccess(ADMIN)}
show={<UsersList />}

View File

@ -40,7 +40,6 @@ export interface IFlags {
UG?: boolean;
ENABLE_DARK_MODE_SUPPORT?: boolean;
embedProxyFrontend?: boolean;
publicSignup?: boolean;
syncSSOGroups?: boolean;
changeRequests?: boolean;
cloneEnvironment?: boolean;

View File

@ -73,7 +73,6 @@ exports[`should create default config 1`] = `
"cloneEnvironment": false,
"embedProxy": false,
"embedProxyFrontend": false,
"publicSignup": false,
"responseTimeWithAppName": false,
"syncSSOGroups": false,
},
@ -87,7 +86,6 @@ exports[`should create default config 1`] = `
"cloneEnvironment": false,
"embedProxy": false,
"embedProxyFrontend": false,
"publicSignup": false,
"responseTimeWithAppName": false,
"syncSSOGroups": false,
},

View File

@ -26,10 +26,6 @@ export const defaultExperimentalOptions = {
process.env.UNLEASH_EXPERIMENTAL_BATCH_METRICS,
false,
),
publicSignup: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PUBLIC_SIGNUP,
false,
),
responseTimeWithAppName: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_RESPONSE_TIME_WITH_APP_NAME,
false,