From: pujashahu Date: Fri, 5 Sep 2025 08:01:23 +0000 (+0530) Subject: mgr/dashboard: Add restore events in notification screen X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da1d9c7911375a0eeed6bd3a286159671428b8ad;p=ceph.git mgr/dashboard: Add restore events in notification screen Fixes: https://tracker.ceph.com/issues/72887 Signed-off-by: pujashahu Signed-off-by: pujaoshahu --- 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 e53e6da02ad..32560058723 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 428b6b16301..90cf13ff0c2 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' } ];