From da1d9c7911375a0eeed6bd3a286159671428b8ad Mon Sep 17 00:00:00 2001 From: pujashahu Date: Fri, 5 Sep 2025 13:31:23 +0530 Subject: [PATCH] mgr/dashboard: Add restore events in notification screen Fixes: https://tracker.ceph.com/issues/72887 Signed-off-by: pujashahu Signed-off-by: pujaoshahu --- .../rgw-bucket-notification-list.component.html | 1 + .../rgw-bucket-notification-list.component.ts | 2 +- .../ceph/rgw/rgw-topic-list/rgw-topic-list.component.html | 7 ++++++- .../rgw/rgw-topic-list/rgw-topic-list.component.spec.ts | 3 ++- .../app/shared/models/notification-configuration.model.ts | 4 ++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-notification-list/rgw-bucket-notification-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-notification-list/rgw-bucket-notification-list.component.html index e53e6da02ad4..325600587234 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-notification-list/rgw-bucket-notification-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-notification-list/rgw-bucket-notification-list.component.html @@ -14,6 +14,7 @@ columnMode="flex" selectionType="single" identifier="Id" + [autoReload]="true" (updateSelection)="updateSelection($event)" (fetchData)="fetchData()"> + + + A topic specifies where and how event notifications from a bucket are delivered, including the target system (e.g., Kafka or HTTP) and its configuration. + + { it('should create', () => { expect(component).toBeTruthy(); - expect(rgwTopicServiceListSpy).toHaveBeenCalledTimes(2); + expect(rgwTopicServiceListSpy.calls.count()).toBe(1); }); it('should test all TableActions combinations', () => { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/notification-configuration.model.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/notification-configuration.model.ts index 428b6b163018..90cf13ff0c2d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/notification-configuration.model.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/notification-configuration.model.ts @@ -44,6 +44,10 @@ export const events: ComboBoxItem[] = [ name: 's3:ObjectCreated:CompleteMultipartUpload' }, { content: 's3:ObjectRemoved:*', name: 's3:ObjectRemoved:*' }, + { content: 's3:ObjectRestore:*', name: 's3:ObjectRestore:*' }, + { content: 's3:ObjectRestore:Post', name: 's3:ObjectRestore:Post' }, + { content: 's3:ObjectRestore:Completed', name: 's3:ObjectRestore:Completed' }, + { content: 's3:ObjectRestore:Delete', name: 's3:ObjectRestore:Delete' }, { content: 's3:ObjectRemoved:Delete', name: 's3:ObjectRemoved:Delete' }, { content: 's3:ObjectRemoved:DeleteMarkerCreated', name: 's3:ObjectRemoved:DeleteMarkerCreated' } ]; -- 2.47.3