feat: enhance storage engine connectivity check with auto-creation of buckets
- Updated the StorageCheckResponse to include a new field `bucket_created` to indicate if a bucket was automatically created during the connectivity check. - Modified the MinIO connectivity check logic to attempt auto-creation of the bucket if it does not exist, setting a public-read policy if successful. - Adjusted the frontend to reflect the new response structure, updating the UI to display a 'created' status when a bucket is auto-created. These changes improve the user experience by providing clear feedback on bucket creation during storage checks, enhancing the overall functionality of the storage engine settings.
This commit is contained in:
@@ -227,6 +227,7 @@ export interface StorageCheckRequest {
|
||||
export interface StorageCheckResponse {
|
||||
ok: boolean
|
||||
message: string
|
||||
bucket_created?: boolean
|
||||
}
|
||||
|
||||
export function checkStorageEngine(req: StorageCheckRequest): Promise<{ data: StorageCheckResponse }> {
|
||||
|
||||
Reference in New Issue
Block a user