Conversation
datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml
Outdated
Show resolved
Hide resolved
Hipska
left a comment
There was a problem hiding this comment.
Shouldn't the request_type field now be dependant from subcategory_id and made read-only?
For the dependency, it would make sense if it was recomputed it in the DB_EVENT_COMPUTE_VALUES, but as it is done on a DB_EVENT_BEFORE_WRITE, the dependency would have no effect. At the end the result, is the same, so it's good enough, I will tackle other topics. |
|
It would have been nicer indeed if it was implemented as Anyway, accepted as-is. |
datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml
Outdated
Show resolved
Hide resolved
| @@ -1334,19 +1333,21 @@ | |||
| // Compute the priority of the ticket | |||
| $this->Set('priority', $this->ComputePriority()); | |||
There was a problem hiding this comment.
As soon as this changes, I would like it to be fully aligned with the recommendation => event based.
Two handlers could be called : EvtComputePriority and EvtComputeRequestType.
Base information
Symptom (bug) / Objective (enhancement)
Reproduction procedure (bug)
Cause (bug)
Proposed solution (bug and enhancement)
Checklist before requesting a review
Checklist of things to do before PR is ready to merge