Improvements to notification system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Wishlist
|
Nathan Lewis | ||
1.10 |
Fix Released
|
Low
|
Unassigned | ||
15.04 |
Fix Released
|
Wishlist
|
Nathan Lewis |
Bug Description
This patch implements some improvements to notification settings which will also allow us to more easily implement further features. Included in this patch:
- Each activity type can specify a default notification method. They default to 'email' to remain backwards compatible.
- Each activity type can specify if it is allowed to be set to 'none'. Defaults to 'allowed' for backwards compatibility.
- Removed 'required' from notification settings - it didn't make sense, and the change above deals with this in a better way.
- The site wide defaults for each activity type can be edited in Site options -> Notification settings. These are applied to new users or whenever a user does not have the appropriate usr_activity_
- There is a separate help next to each activity type to explain what messages will be affected by the setting.
The following additional changes were made internally to allow the above:
- Most activity types can now be set to 'none'. We feel that only user to user and system messages should be enforeced and everything else should be optional.
- The way 'none' is handled was changed. A missing usr_activity_
- The function pieform_get_help was modified to check for element fields 'helpplugintype', 'helppluginname' and 'helpformname' so that the notification settings form elements could be reused in the site options. (We want to use the same help files on more than one form, but the help files are saved with the form name, so we had to allow the form name to be specified for the help).
Activity type plugin authors should be aware of the following changes:
- 'enablenonemethod' and 'defaultmethod' are values that can be specified when specifying an activity type. Both are optional.
- Help files can be specified for each activity type. The help files can be placed in the plugin's subfolder (e.g. artefact/
Version: master
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
assignee: | nobody → Nathan Lewis (nathan-lewis) |
importance: | Undecided → Wishlist |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
tags: | added: behat has-behat |
Patch for "master" branch: https:/ /reviews. mahara. org/3148