Allow action trigger events to be repeated/reused
Bug #1207902 reported by
Remington Steed
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Currently, there is no way to repeat a notification (action/trigger) when an event occurs more than once for the same target. This only matters for targets that are persistent (such as a library card) combined with events that can reoccur (such as expiration, if the expiration can be removed).
USE CASE
When a patron's library card expires, we send a notification email. They can have the expiration date extended on that card. We then need a way to send subsequent notification emails when that same card expires again.
Changed in evergreen: | |
status: | New → In Progress |
Changed in evergreen: | |
milestone: | none → 2.5.0-beta1 |
assignee: | nobody → Remington Steed (rjs7) |
Changed in evergreen: | |
assignee: | Remington Steed (rjs7) → nobody |
status: | In Progress → Confirmed |
tags: | added: 2.5-beta-blocker |
Changed in evergreen: | |
assignee: | Mike Rylander (mrylander) → nobody |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's my branch: user/rsteed/ lp1207902_ trigger_ event_repeatabi lity_delay
working/
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ rsteed/ lp1207902_ trigger_ event_repeatabi lity_delay
To test this new feature: trigger_ runner. pl --process-hooks --run-pending --granularity Daily trigger. event for new rows [FIRST EVENT IS CREATED] trigger_ runner. pl --process-hooks --run-pending --granularity Daily trigger. event for new rows [NOTHING NEW] trigger_ runner. pl --process-hooks --run-pending --granularity Daily trigger. event for new rows [REPEAT EVENT IS CREATED]
- apply the changes
- log in to staff client: Admin > Local Admin > Notifications / Action Triggers
- new "Event Repeatability Delay" field should display in grid view and edit view
- edit "3 Day Courtesy Notice"
- - add Repeatability Delay "1 minute"
- - add Granularity "Daily"
- - make sure Enabled is set to "True"
- check out an item to yourself, set the due date between 2 and 3 days in the future
- run: action_
- check db table action_
- BEFORE 1 MINUTE, run: action_
- check db table action_
- AFTER 1 MINUTE, run: action_
- check db table action_