Echo Event handling is limited to know events only - see
if ( !isset( $wgEchoNotifications[$info['type']] ) ) {
return false;
}When the eventType is unknown - eg not specified in $wgEchoNotifications, the system will return early. This will cause Echo to skip notifications like the newly created SimpleNotification.
We need to decide whether Echo should have a generic presentation model and try to handle/render notifications even if those are unknown. Or should it keep doing what it is doing, eg early return.
This ticket relates to T385810, where we need to decide what would be default MediaWiki behaviour.
Proposed solutions:
Provide a generic Event Type definition
instead of doing isset( $wgEchoNotifications[$info['type']] ) Echo should something like AttributeManager::getTypeDefintion( $info['type']) to return Event definition. When event is not specified it should provide some default "template".
Keep existing behaviour
When Echo is triggered with a notification type that is not specified in $wgEchoNotifications, keep existing logic, eg do an early return and forget the notification.