Every People page now has What it is, Read more, How to use it, How the numbers are calculated, How it works in WeKan and Commits, checked against the code. Corrected from the code: Locked Users shows only the settings (who is locked is in People), the People action is Unlock All, the test button is "Send a test email to yourself", ACCOUNTS_COOKIE_REFRESH_RATE_LIMIT is in the Login form now, Notifications has exactly two services, an Organization admin gets Settings / Appearance (was Visibility), and Roles has custom roles and the Roles Status table. Thanks to xet7 !
5.5 KiB
Admin Panel / People / Notifications
What it is
The site-wide default for every notification WeKan can send: which notification services - the in-app Notification tray and Email - are on or off by default for everyone, and how each channel (e-mail, tray, webhooks) delivers by default: what a notification shows, how several are grouped, and when they are sent.
This is the top of a 3-tier precedence chain: Admin Panel default → Board override → Member override. A board's Board Settings and a member's own Member Settings can each override this default for their own scope, but a service turned off here is off everywhere nothing more specific overrides it.
Read more
- Push technology and Notification area on Wikipedia.
- Member Settings notifications, the same popup at the member scope, with the board and admin overrides it can fall back to.
- E-mail - how the notification e-mails are sent.
How to use it
- Open Admin Panel, People, Notifications
(
/admin/people/notifications), right below E-mail in the menu. - For Notification tray and for Email, choose Yes (on by default for everyone) or No (off by default). The choice saves at once.
- Below them, open Email, Notification tray or Outgoing Webhooks to set the instance defaults of that channel: Layout, which parts to Show, Grouping and When to send. Each change saves at once.
- The email-to-card settings of the instance are in the same pane.
A board admin then overrides a service for one board in Board Settings, and a member for themselves in Member Settings, each with a third choice, Default, that falls back to the level above.
How the numbers are calculated
From models/lib/notificationSettings.js and models/lib/notificationDelivery.js:
- Which level wins: the member's own setting, if it is Yes or No; else the
board's, if it is Yes or No; else this Admin Panel default; and when nothing
has ever been set anywhere, on (
HARDCODED_FALLBACK = true). - Delivery defaults built in, used until something is chosen:
- e-mail: the clear layout, every part shown, all of a recipient's
notifications combined into one e-mail, sent at once - "at once" meaning
after
EMAIL_NOTIFICATION_TIMEOUTmilliseconds, 30000 (30 seconds) when unset or not a positive number (server/notifications/emailQueue.js); - tray: the classic layout, every entry on its own, at once;
- webhooks: the text and the standard fields, every notification its own POST, at once.
- e-mail: the clear layout, every part shown, all of a recipient's
notifications combined into one e-mail, sent at once - "at once" meaning
after
- Interval schedule: one of 5, 10, 15, 30, 60, 120, 240, 480, 720 or 1440 minutes; 60 by default. Daily schedule: a time of day, 08:00 by default.
How it works in WeKan
- The same popup renders at all three levels (
notificationSettingsPopup, client/components/settings/notificationSettingsPopup.jade); this is thescope="admin"case, which is why it offers only Yes/No rather than a third "use the default" choice - there is no level above it to fall back to. - The Yes/No is saved by
setAdminNotifyDefaultin server/models/settings.js, which is site-admin only and accepts only the servicestrayandemail. It writesnotifyDefaultTrayornotifyDefaultEmailof thesettingsdocument. The board override isboard.notifyOverride, the member'sprofile.notifyOverride. - The delivery forms are
notificationDeliverySettings(notificationDeliverySettings.jade), saved throughsetNotificationDelivery, which checks the caller's role and the value. - The change of the admin default is recorded in the Audit log.
- Pinned by tests/notificationSettingsResolution.test.cjs, tests/notificationSettingsScope.test.cjs, tests/notificationDelivery.test.cjs and server/lib/tests/notificationDelivery.tests.js.
Commits
- Browser push notifications, per device
- E-mails in the clear layout by default
- Email to card settings
- Choose what notifications contain, and group and schedule them
- Honor scoped notification subscriptions and settings
- Document the Notifications pane
- Give the Notifications pane a URL of its own
- Add the 3-tier Notification Settings popup