From 60d7a658b1b8fd91f6203fc95a10f5dcb2ee5adf Mon Sep 17 00:00:00 2001 From: jhugman Date: Thu, 5 Jan 2023 16:57:15 +0000 Subject: [PATCH] For EXP-2992: Add notification config with polling interval to messaging feature (#28381) --- .experimenter.yaml | 3 +++ nimbus.fml.yaml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.experimenter.yaml b/.experimenter.yaml index 6ae24eaa4..2bc3eeb67 100644 --- a/.experimenter.yaml +++ b/.experimenter.yaml @@ -37,6 +37,9 @@ messaging: messages: type: json description: A growable collection of messages + notification-config: + type: json + description: Configuration of the notification worker for all notification messages. on-control: type: string description: What should be displayed when a control message is selected. diff --git a/nimbus.fml.yaml b/nimbus.fml.yaml index b74a21dd6..7e4c078b3 100644 --- a/nimbus.fml.yaml +++ b/nimbus.fml.yaml @@ -113,6 +113,10 @@ features: type: ControlMessageBehavior description: What should be displayed when a control message is selected. default: show-next-message + notification-config: + description: Configuration of the notification worker for all notification messages. + type: NotificationConfig + default: {} defaults: - value: triggers: @@ -181,6 +185,9 @@ features: EXPIRES_QUICKLY: priority: 100 max-display-count: 1 + notification-config: + polling-interval: 180 # 3 minutes + mr2022: description: Features for MR 2022. variables: @@ -330,6 +337,15 @@ types: How many sessions will this message be shown to the user before it is expired. default: 5 + NotificationConfig: + description: Attributes controlling the global configuration of notification messages. + fields: + polling-interval: + type: Int + description: > + How often, in seconds, the notification message worker will wake up and check for new + messages. + default: 3600 enums: ControlMessageBehavior: