For EXP-2992: Add notification config with polling interval to messaging feature (#28381)
This commit is contained in:
parent
d69ad4e962
commit
60d7a658b1
|
@ -37,6 +37,9 @@ messaging:
|
||||||
messages:
|
messages:
|
||||||
type: json
|
type: json
|
||||||
description: A growable collection of messages
|
description: A growable collection of messages
|
||||||
|
notification-config:
|
||||||
|
type: json
|
||||||
|
description: Configuration of the notification worker for all notification messages.
|
||||||
on-control:
|
on-control:
|
||||||
type: string
|
type: string
|
||||||
description: What should be displayed when a control message is selected.
|
description: What should be displayed when a control message is selected.
|
||||||
|
|
|
@ -113,6 +113,10 @@ features:
|
||||||
type: ControlMessageBehavior
|
type: ControlMessageBehavior
|
||||||
description: What should be displayed when a control message is selected.
|
description: What should be displayed when a control message is selected.
|
||||||
default: show-next-message
|
default: show-next-message
|
||||||
|
notification-config:
|
||||||
|
description: Configuration of the notification worker for all notification messages.
|
||||||
|
type: NotificationConfig
|
||||||
|
default: {}
|
||||||
defaults:
|
defaults:
|
||||||
- value:
|
- value:
|
||||||
triggers:
|
triggers:
|
||||||
|
@ -181,6 +185,9 @@ features:
|
||||||
EXPIRES_QUICKLY:
|
EXPIRES_QUICKLY:
|
||||||
priority: 100
|
priority: 100
|
||||||
max-display-count: 1
|
max-display-count: 1
|
||||||
|
notification-config:
|
||||||
|
polling-interval: 180 # 3 minutes
|
||||||
|
|
||||||
mr2022:
|
mr2022:
|
||||||
description: Features for MR 2022.
|
description: Features for MR 2022.
|
||||||
variables:
|
variables:
|
||||||
|
@ -330,6 +337,15 @@ types:
|
||||||
How many sessions will this message be shown to the user
|
How many sessions will this message be shown to the user
|
||||||
before it is expired.
|
before it is expired.
|
||||||
default: 5
|
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:
|
enums:
|
||||||
ControlMessageBehavior:
|
ControlMessageBehavior:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user