Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.0-b1
-
Component/s: None
-
Labels:None
Description
See Event Handlers for a list of events that would need to be considered.
Effectively, whenever an event is triggered for a non-add action, and we have an instance of the record, the record should be passed along to the event handler representing it's original state before having just been changed.
For example, when editing a service, the Services::edit event is triggered and includes the service ID (service_id) and the data used to update the service (vars). This task aims to update this to also pass an object representing the original service record prior to being updated (e.g. prior_service). The same behavior should be applied to other events (e.g. Packages::edit, Packages::delete, etc.).
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Rank | Ranked lower |
Rank | Ranked higher |
Story Points | 8 |
Sprint | 4.3.0 Sprint 1 [ 49 ] |
Rank | Ranked higher |
Description |
See [Event Handlers|https://docs.blesta.com/display/dev/Event+Handlers] for a list of events that would need to be considered.
Effectively, whenever an event is triggered for a _non-add_ action, and we have an instance of the record, the record should be passed along to the event handler representing it's original state before having just been changed. For example, when editing a service, the _Services::edit_ event is triggered and includes the service ID (_service_id_) and the data used to update the service (_vars_). This task aims to update this to also pass an object representing the original service record prior to being updated (e.g. _previous_service_). The same behavior should be applied to other events (e.g. Packages::edit, Packages::delete, etc.). |
See [Event Handlers|https://docs.blesta.com/display/dev/Event+Handlers] for a list of events that would need to be considered.
Effectively, whenever an event is triggered for a _non-add_ action, and we have an instance of the record, the record should be passed along to the event handler representing it's original state before having just been changed. For example, when editing a service, the _Services::edit_ event is triggered and includes the service ID (_service_id_) and the data used to update the service (_vars_). This task aims to update this to also pass an object representing the original service record prior to being updated (e.g. _prior_service_). The same behavior should be applied to other events (e.g. Packages::edit, Packages::delete, etc.). |
Fix Version/s | 4.3.0-b1 [ 11019 ] |
Assignee | Jonathan Reissmueller [ jonathan ] |
Sprint | 4.3.0 Sprint 1 [ 49 ] | 4.3.0 Sprint 2 [ 52 ] |
Rank | Ranked lower |
Sprint | 4.3.0 Sprint 2 [ 52 ] | 4.3.0 Sprint 2, 4.3.0 Sprint 3 [ 52, 53 ] |
Rank | Ranked higher |

Status | Open [ 1 ] | In Progress [ 3 ] |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 1 hour, 15 minutes [ 4500 ] | |
Worklog Id | 10754 [ 10754 ] |

Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Sprint | 4.3.0 Sprint 2, 4.3.0 Sprint 3 [ 52, 53 ] | 4.3.0 Sprint 2, 4.3.0 Sprint 3, 4.3.0 Sprint 4 [ 52, 53, 54 ] |
Time Spent | 1 hour, 15 minutes [ 4500 ] | 1 hour, 24 minutes [ 5040 ] |
Worklog Id | 10775 [ 10775 ] |
Time Spent | 1 hour, 24 minutes [ 5040 ] | 1 hour, 50 minutes [ 6600 ] |
Worklog Id | 10810 [ 10810 ] |
Time Spent | 1 hour, 50 minutes [ 6600 ] | 2 hours, 22 minutes [ 8520 ] |
Worklog Id | 10811 [ 10811 ] |

Status | In Review [ 5 ] | Closed [ 6 ] |