Skip to content

Commit da95bbb

Browse files
FIX (s3): Do not allow to change prefix after creation
1 parent 6cfc0ca commit da95bbb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/features/storages/ui/edit/storages/EditS3StorageComponent.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,16 @@ export function EditS3StorageComponent({ storage, setStorage, setUnsaved }: Prop
183183
size="small"
184184
className="w-full max-w-[250px]"
185185
placeholder="my-prefix/ (optional)"
186+
// we do not allow to change the prefix after creation,
187+
// otherwise we will have to migrate all the data to the new prefix
188+
disabled={!!storage.id}
186189
/>
187190

188191
<Tooltip
189192
className="cursor-pointer"
190-
title="Optional prefix for all object keys (e.g., 'backups/' or 'my_team/'). May not work with some S3-compatible storages."
193+
title="Optional prefix for all object keys (e.g., 'backups/' or 'my_team/'). May not work with some S3-compatible storages. Cannot be changed after creation (otherwise backups will be lost)."
191194
>
192-
<InfoCircleOutlined className="ml-2" style={{ color: 'gray' }} />
195+
<InfoCircleOutlined className="ml-4" style={{ color: 'gray' }} />
193196
</Tooltip>
194197
</div>
195198
</div>

0 commit comments

Comments
 (0)