Details
Description
Our current events (e.g. Services::add) typically only trigger after the service is created.
We should add an option for events to be triggered Before an action and After an action. Existing events will then need to be deprecated and setup to perform the Before or After action to maintain backward compatibility.
- We will need Before and After events available for all of the current events
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Story Points | 8 |
Tyson Phillips (Inactive)
made changes -
Epic Link | CORE-2764 [ 13922 ] |
Jonathan Reissmueller
made changes -
Assignee | Tyson Phillips [ tyson ] |
Jonathan Reissmueller
made changes -
Fix Version/s | 5.3.0-b1 [ 11711 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.3.0 Sprint 2 [ 139 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Labels | Developer |
Jonathan Reissmueller
made changes -
Assignee | Jonathan Reissmueller [ jonathan ] |
Jonathan Reissmueller
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 58 minutes [ 3480 ] | |
Worklog Id | 15297 [ 15297 ] |
Jonathan Reissmueller
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Jonathan Reissmueller
made changes -
Time Spent | 58 minutes [ 3480 ] | 3 hours, 35 minutes [ 12900 ] |
Worklog Id | 15300 [ 15300 ] |
Jonathan Reissmueller
made changes -
Time Spent | 3 hours, 35 minutes [ 12900 ] | 3 hours, 54 minutes [ 14040 ] |
Worklog Id | 15303 [ 15303 ] |
Jonathan Reissmueller
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Time Spent | 3 hours, 54 minutes [ 14040 ] | 7 hours, 11 minutes [ 25860 ] |
Worklog Id | 15305 [ 15305 ] |
Jonathan Reissmueller
made changes -
Jonathan Reissmueller
made changes -
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |
I'd love to see:
To that end I was thinking we could add the following method to the AppModel class:
Then to trigger an event and allow it to update the submitted data, an event could be called as such:
extract($this->executeAndParseEvent('Packages.add', compact(['package_id', 'vars'])));
The call to extract() would override the submitted variables with the updated version (or the same thing if no updates were made).