SMS functionality generates unnecessary event churn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Medium
|
Unassigned | ||
3.3 |
Won't Fix
|
Undecided
|
Unassigned | ||
3.4 |
Won't Fix
|
Medium
|
Unassigned | ||
3.5 |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
EG 2.2+
The event definition named "Hold Ready for Pickup SMS Notification" is enabled by default, and this generates a pending event for every readied hold, even if SMS functionality is otherwise disabled. From what I can tell, this is generally harmless, as the end result seems to be an attempt to send an email for every hold with an invalid "To:" field.
My bigger concern is that this practice of generating "black hole" events has the potential to do large amounts of undesirable action, as it is simple to build up an enormous number of pending actions without being aware of it (we have), then manage to set them off in unforeseen ways (we thankfully did not).
Recommendation is to have the definition off by default, then document enabling of SMS notices as a two step process. Or is there more behind this decision to have this event definition enabled all the time? As an alternative to turning it off by default, we could also create a new validator which would honor the global "master" switch" for SMS hold notices.
Changed in evergreen: | |
status: | New → Triaged |
Changed in evergreen: | |
milestone: | 2.4.0-alpha1 → 2.4.0-beta |
Changed in evergreen: | |
milestone: | 2.4.0-beta → 2.4.0-rc |
Changed in evergreen: | |
milestone: | 2.4.0-rc → none |
no longer affects: | evergreen/2.2 |
no longer affects: | evergreen/2.3 |
no longer affects: | evergreen/2.4 |
tags: | added: actiontrigger holds |
Changed in evergreen: | |
status: | Triaged → Confirmed |
Changed in evergreen: | |
milestone: | 3.5.0 → 3.5.1 |
Changed in evergreen: | |
importance: | Undecided → Medium |
Changed in evergreen: | |
milestone: | 3.5.1 → 3.5.2 |
tags: | removed: pullrequest |
tags: | added: bitesize |
Changed in evergreen: | |
milestone: | 3.5.2 → 3.6.1 |
Changed in evergreen: | |
milestone: | 3.6.1 → 3.6.2 |
Changed in evergreen: | |
milestone: | 3.6.2 → 3.6.3 |
Changed in evergreen: | |
milestone: | 3.6.3 → none |
tags: |
added: circ-holds removed: holds |
There should be a validator that checks if SMS is enabled for the hold or not that silently flags those as invalid and moves on. Or, rather, the HoldIsAvailable validator should be doing that.
This requires a parameter for the event def that may not be there on upgrades currently, though....so it may only apply by default to clean installs after the validator changes were introduced.