Fixed Bucket Events Notifications Page (#2906)
- Added missing ilm & replica supported types - Fixed add screen crash when no arn is selected - Migrated components to mds Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -7433,7 +7433,9 @@ func init() {
|
||||
"enum": [
|
||||
"put",
|
||||
"delete",
|
||||
"get"
|
||||
"get",
|
||||
"replica",
|
||||
"ilm"
|
||||
]
|
||||
},
|
||||
"objectBucketLifecycle": {
|
||||
@@ -16564,7 +16566,9 @@ func init() {
|
||||
"enum": [
|
||||
"put",
|
||||
"delete",
|
||||
"get"
|
||||
"get",
|
||||
"replica",
|
||||
"ilm"
|
||||
]
|
||||
},
|
||||
"objectBucketLifecycle": {
|
||||
|
||||
@@ -73,7 +73,14 @@ func listBucketEvents(client MinioClient, bucketName string) ([]*models.Notifica
|
||||
eventTypePretty = models.NotificationEventTypePut
|
||||
case notification.ObjectRemovedAll:
|
||||
eventTypePretty = models.NotificationEventTypeDelete
|
||||
case notification.ObjectReplicationAll:
|
||||
eventTypePretty = models.NotificationEventTypeReplica
|
||||
case notification.ObjectTransitionAll:
|
||||
eventTypePretty = models.NotificationEventTypeIlm
|
||||
default:
|
||||
continue
|
||||
}
|
||||
|
||||
result = append(result, eventTypePretty)
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user