diff --git a/deployment/updates/scripts/2024_03_03_deploy_kafka_room_events.php b/deployment/updates/scripts/2024_03_03_deploy_kafka_room_events.php new file mode 100644 index 00000000000..b036c889980 --- /dev/null +++ b/deployment/updates/scripts/2024_03_03_deploy_kafka_room_events.php @@ -0,0 +1,29 @@ + + + + @SERVICE_URL@ + -2 + Stand alone php 1.0.0 + 30 + Stand alone php 1.0.0 + + + -2 + @ADMIN_CONSOLE_PARTNER_ADMIN_SECRET@ + 2 + + + + + + + + diff --git a/plugins/event_notification/providers/kafka/lib/model/KafkaNotificationTemplate.php b/plugins/event_notification/providers/kafka/lib/model/KafkaNotificationTemplate.php index 30036cb9bc0..4b0b70b26e2 100644 --- a/plugins/event_notification/providers/kafka/lib/model/KafkaNotificationTemplate.php +++ b/plugins/event_notification/providers/kafka/lib/model/KafkaNotificationTemplate.php @@ -114,7 +114,7 @@ public function dispatch(kScope $scope) } $requiredPermissions = explode(",", $this->getRequiresPermissions()); - if(count($requiredPermissions)) + if(count(array_filter($requiredPermissions, 'strlen'))) { KalturaLog::debug("Checking if partner has permissions required to dispatch [{$this->getRequiresPermissions()}]"); $found = false; diff --git a/release-notes.md b/release-notes.md index 3f91ed92a2b..a913ac5d7a4 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,3 +1,15 @@ +# Ursa-21.0.0 +## Add kafka event notification for room entry updates ## +- Issue Type: Task +- Issue ID: FOUN-1370 + +### Configuration ### + Replace all tokens (SERVICE_URL, ADMIN_CONSOLE_PARTNER_ADMIN_SECRET) from the template XML file below and remove ".template" from the file name: + /opt/kaltura/app/deployment/updates/scripts/xml/notifications/2024_03_03_add_kafka_room_entry_notifications.template.xml + +### Deployment scripts ### + php /opt/kaltura/app/deployment/updates/scripts/2024_03_03_deploy_kafka_room_events.php + # Tucana-20.20.0 ## Enable Content Lab ## * Issue Type: Task