Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
notification_settings_specs

Notifications

Learner Notifications

Notification Can be turned On/Off
sso signup notification No
sso signup notification after approval No
Signup notification No
Signup notification admin approved No
Signup notification admin created No
Account rejected No
Account approved No
Account activation No
Live event invite No
Password reset instructions No
Password reset confirmation Yes
Message notification Yes
Invitation to join group No
Group member rejected No
Group member approved No
Comment notice Yes
Follow up comment notice Yes
Order payment failed Yes
Subscription payment failed Yes
Auto enrollment Yes

Content Creator

Notification Can be turned On/Off
Certificate generation error Yes
Asset conversion complete Yes

NOTE: Content creator will receive all the above listed Content Creator notifications and also Learner notifications, as a Content creator is also a learner.

Group Owner

Notification Can be turned On/Off
Group member awaiting approval No

NOTE: Group owner will receive all the above listed Group Owner notifications and also Learner notifications, as a Group owner is also a learner.

Admin Notifications

Notification Can be turned On/Off
New site notification No
Site approved No
Site confirmation No
Site rejected No
Trial expired Yes
Trial reminder Yes
Trial expired deleting site Yes
Payment success Yes
Payment failure Yes
Renewal failed delete site Yes
Cancel subscription Yes
Canceled subscription delete site Yes
Subscription expired delete site Yes
Active user overage Yes
Sigup notification to company admin No
Admin copy order payment failed Yes
Admin copy subscription payment failed Yes
Contact us No

NOTE: Admin's will receive all the above listed Admin notifications, Content Creator notifications and also Learner notifications, as an Admin is also a content creator and in turn a learner. Also receives the group owner notifications if he/she owns a group.

Super Admin Notifications

Notification Can be turned On/Off
Subscription canceled admin notification Yes
Company created notification No
Live event exception Yes
Enterprise plan request No

NOTE: Super admin's will receive all the above listed Super admin notifications, Admin notifications, content creator notifications and also Learner notifications, as the Super admin is an Admin and inturn a content creator as well as a learner. Also receives the group owner notifications if he/she owns a group.

General Flow

Disabling notifications:

  1. The List of notification emails a user receives are listed in the Notification Settings page with a check box near by.
  2. Enabled notification and disabled notifications can displayed separated by a hr line with a sub heading (As we display enabled features and disabled features inside disable company features popup.)
  3. A user can turn off/on any notifications by unchecking/checking the checkbox next to the notification in Notification Settings page.
  4. Checkboxes are disabled for notifications which cannot be turned on/off (i.e. For default notifications).
  5. Once the user turns off a notification a record in the user_disabled_notification table is created and when the notification is turned on, the record is removed from the user_disabled_notification table.
  6. Before a notification email is sent to a user we check if the notification is turned on for that user. If not the notification email is not sent to the user. This condition check can be made in the notifier models (i.e. Company notifier / User notifier).

Implementation Details

Tables

notifications_settings

notification String - Unique key
notification_type String (Can be User/Content Creator/Group Owner/Admin/Super Admin)
can_be_turned_on_or_off Boolean

user_disabled_notifications

user_id Integer - Foreign key to users table
notification String
notification_id Integer - Foreign key to notification_settings table

Associations

User
has_many :user_disabled_notifications, :dependent ⇒ :destroy

User Disabled Notification
belongs_to :user
belongs_to :notification_setting

Notification Settings
has_many :user_disabled_notifications, :dependent ⇒ :destroy

notification_settings_specs.txt · Last modified: 2018/08/31 16:16 (external edit)