diff --git a/api/datastore/migrator/migrator.go b/api/datastore/migrator/migrator.go index fd1f42f43..0c5cffbf2 100644 --- a/api/datastore/migrator/migrator.go +++ b/api/datastore/migrator/migrator.go @@ -258,9 +258,6 @@ func (m *Migrator) initMigrations() { m.addMigrations("2.33.0-rc1", m.migrateEdgeGroupEndpointsToRoars_2_33_0) - //m.addMigrations("2.33.0", m.migrateEdgeGroupEndpointsToRoars_2_33_0) - // when we release 2.33.0 it will also run the rc-1 migration function - // Add new migrations above... // One function per migration, each versions migration funcs in the same file. } diff --git a/app/react/portainer/settings/SettingsView/ExperimentalFeatures/EnableOpenAIIntegrationSwitch.tsx b/app/react/portainer/settings/SettingsView/ExperimentalFeatures/EnableOpenAIIntegrationSwitch.tsx deleted file mode 100644 index 0470259e5..000000000 --- a/app/react/portainer/settings/SettingsView/ExperimentalFeatures/EnableOpenAIIntegrationSwitch.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { useField } from 'formik'; - -import { FormControl } from '@@/form-components/FormControl'; -import { Switch } from '@@/form-components/SwitchField/Switch'; - -const fieldKey = 'OpenAIIntegration'; - -export function EnableOpenAIIntegrationSwitch() { - const [inputProps, meta, helpers] = useField(fieldKey); - - return ( - - - - ); - - function handleChange(enable: boolean) { - helpers.setValue(enable); - } -} diff --git a/app/react/portainer/settings/SettingsView/ExperimentalFeatures/ExperimentalFeaturesForm.tsx b/app/react/portainer/settings/SettingsView/ExperimentalFeatures/ExperimentalFeaturesForm.tsx index 197813091..a1e500dad 100644 --- a/app/react/portainer/settings/SettingsView/ExperimentalFeatures/ExperimentalFeaturesForm.tsx +++ b/app/react/portainer/settings/SettingsView/ExperimentalFeatures/ExperimentalFeaturesForm.tsx @@ -10,14 +10,9 @@ import { useUpdateExperimentalSettingsMutation } from '@/react/portainer/setting import { LoadingButton } from '@@/buttons/LoadingButton'; import { TextTip } from '@@/Tip/TextTip'; -import { EnableOpenAIIntegrationSwitch } from './EnableOpenAIIntegrationSwitch'; +interface FormValues {} -interface FormValues { - OpenAIIntegration: boolean; -} -const validation = yup.object({ - OpenAIIntegration: yup.boolean(), -}); +const validation = yup.object({}); interface Props { settings: ExperimentalFeatures; @@ -30,24 +25,19 @@ export function ExperimentalFeaturesSettingsForm({ settings }: Props) { const { mutate: updateSettings } = mutation; - const handleSubmit = useCallback( - (variables: FormValues) => { - updateSettings( - { - OpenAIIntegration: variables.OpenAIIntegration, + const handleSubmit = useCallback(() => { + updateSettings( + {}, + { + onSuccess() { + notifySuccess( + 'Success', + 'Successfully updated experimental features settings' + ); }, - { - onSuccess() { - notifySuccess( - 'Success', - 'Successfully updated experimental features settings' - ); - }, - } - ); - }, - [updateSettings] - ); + } + ); + }, [updateSettings]); return ( @@ -76,8 +66,6 @@ export function ExperimentalFeaturesSettingsForm({ settings }: Props) { experimental feature will prevent access to it. - -
- {isBE && } - diff --git a/app/react/portainer/settings/types.ts b/app/react/portainer/settings/types.ts index 7bb8f381f..03b564549 100644 --- a/app/react/portainer/settings/types.ts +++ b/app/react/portainer/settings/types.ts @@ -99,9 +99,7 @@ export interface DefaultRegistry { Hide: boolean; } -export interface ExperimentalFeatures { - OpenAIIntegration: boolean; -} +export interface ExperimentalFeatures {} export interface Settings { LogoURL: string;