From 8a34ab89458dc95a572e6e74b021dd573f1964a6 Mon Sep 17 00:00:00 2001 From: Gurleen Kaur Date: Tue, 5 Nov 2024 13:54:19 +0530 Subject: [PATCH 1/5] pubsub permission changes. --- descriptors/ModuleDescriptor-template.json | 6 ++---- pom.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index c0a907c..11d67af 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -188,9 +188,6 @@ { "methods": ["POST"], "pathPattern": "/audit/handlers/log-record", - "permissionsRequired": [ - "pubsub.events.post" - ], "modulePermissions": [ "users.item.get", "users.collection.get", @@ -198,7 +195,8 @@ "inventory.items.item.get", "inventory-storage.holdings.item.get", "circulation-storage.cancellation-reasons.collection.get", - "circulation-item.item.get" + "circulation-item.item.get", + "audit.pub-sub-handlers.log-record-event.post" ] } ] diff --git a/pom.xml b/pom.xml index 23f1cd6..c53a59e 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,7 @@ ${project.basedir} UTF-8 UTF-8 + 1.0.0 @@ -182,6 +183,19 @@ + + org.folio + folio-module-descriptor-validator + ${folio-module-descriptor-validator.version} + false + + + + validate + + + + From f82f2a0502624e4f700fcd59d6f5a6ff4349a65f Mon Sep 17 00:00:00 2001 From: Gurleen Kaur Date: Tue, 5 Nov 2024 15:16:09 +0530 Subject: [PATCH 2/5] pubsub permission changes. --- descriptors/ModuleDescriptor-template.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 11d67af..041d17f 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -188,6 +188,8 @@ { "methods": ["POST"], "pathPattern": "/audit/handlers/log-record", + "permissionsRequired": [ + ], "modulePermissions": [ "users.item.get", "users.collection.get", From 5f51e8b725918f7997f3e45ab6b5c957646d3d88 Mon Sep 17 00:00:00 2001 From: Taras_Spashchenko Date: Tue, 5 Nov 2024 11:17:53 +0100 Subject: [PATCH 3/5] Changes related to audit.pub-sub-handlers.log-record-event.post --- descriptors/ModuleDescriptor-template.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 041d17f..d403b4b 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -189,6 +189,7 @@ "methods": ["POST"], "pathPattern": "/audit/handlers/log-record", "permissionsRequired": [ + "audit.pub-sub-handlers.log-record-event.post" ], "modulePermissions": [ "users.item.get", @@ -197,8 +198,7 @@ "inventory.items.item.get", "inventory-storage.holdings.item.get", "circulation-storage.cancellation-reasons.collection.get", - "circulation-item.item.get", - "audit.pub-sub-handlers.log-record-event.post" + "circulation-item.item.get" ] } ] @@ -284,6 +284,11 @@ "displayName": "Acquisition invoice events - get invoice change events", "description": "Get invoice change events" }, + { + "permissionName": "audit.pub-sub-handlers.log-record-event.post", + "displayName" : "log record events from pub-sub", + "description" : "log record events received from pub-sub" + }, { "permissionName": "audit.all", "displayName": "Audit - all permissions", From 4b05c7bf2f8f70c72482199d179545474fa68ba2 Mon Sep 17 00:00:00 2001 From: Gurleen Kaur Date: Tue, 5 Nov 2024 17:50:07 +0530 Subject: [PATCH 4/5] pubsub permission changes. --- descriptors/ModuleDescriptor-template.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index d403b4b..902d0fb 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -284,11 +284,6 @@ "displayName": "Acquisition invoice events - get invoice change events", "description": "Get invoice change events" }, - { - "permissionName": "audit.pub-sub-handlers.log-record-event.post", - "displayName" : "log record events from pub-sub", - "description" : "log record events received from pub-sub" - }, { "permissionName": "audit.all", "displayName": "Audit - all permissions", From b0cb1f53f8850880ae6656fcabaf1267f218633f Mon Sep 17 00:00:00 2001 From: Gurleen Kaur Date: Thu, 7 Nov 2024 11:28:53 +0530 Subject: [PATCH 5/5] pubsub permission changes. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c53a59e..d4eddff 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ ${project.basedir} UTF-8 UTF-8 - 1.0.0 + 1.0.1