src: Remove image-builder.users.enabled flag

The Users customization is available in production now, the flag is no longer used.
This commit is contained in:
regexowl 2025-05-19 10:18:09 +02:00 committed by Klara Simickova
parent 3312beb6e7
commit b465920b18
5 changed files with 3 additions and 11 deletions

View file

@ -199,7 +199,6 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
const { isFedoraEnv } = useGetEnvironment();
// Feature flags
const complianceEnabled = useFlag('image-builder.compliance.enabled');
const isUsersEnabled = useFlag('image-builder.users.enabled');
// IMPORTANT: Ensure the wizard starts with a fresh initial state
useEffect(() => {
@ -566,7 +565,6 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
id="wizard-users"
key="wizard-users"
navItem={customStatusNavItem}
isHidden={!isUsersEnabled}
status={usersValidation.disabledNext ? 'error' : 'default'}
footer={
<CustomWizardFooter

View file

@ -60,10 +60,7 @@ import {
selectUsers,
selectKernel,
} from '../../../../store/wizardSlice';
import {
useFlag,
useGetEnvironment,
} from '../../../../Utilities/useGetEnvironment';
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
const Review = () => {
const { goToStepById } = useWizardContext();
@ -190,7 +187,6 @@ const Review = () => {
);
};
const isUsersEnabled = useFlag('image-builder.users.enabled');
const { isFedoraEnv } = useGetEnvironment();
return (
<>
@ -380,7 +376,7 @@ const Review = () => {
<ContentList />
</ExpandableSection>
)}
{isUsersEnabled && users.length > 0 && (
{users.length > 0 && (
<ExpandableSection
toggleContent={composeExpandable(
'Users',

View file

@ -39,7 +39,6 @@ export const useFlagWithEphemDefault = (
const onPremFlag = (flag: string): boolean => {
switch (flag) {
case 'image-builder.users.enabled':
case 'image-builder.templates.enabled':
return true;
default:

View file

@ -52,6 +52,7 @@ const goToReviewStep = async () => {
await clickNext(); // Snapshots
await clickNext(); // Custom repositories
await clickNext(); // Additional packages
await clickNext(); // Users
await clickNext(); // Timezone
await clickNext(); // Locale
await clickNext(); // Hostname

View file

@ -59,8 +59,6 @@ vi.mock('@unleash/proxy-client-react', () => ({
useUnleashContext: () => vi.fn(),
useFlag: vi.fn((flag) => {
switch (flag) {
case 'image-builder.users.enabled':
return true;
case 'image-builder.import.enabled':
return true;
case 'edgeParity.image-list':