-
Notifications
You must be signed in to change notification settings - Fork 279
N°4032 - On UserRequest, service subcategory no more limited by request_type #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
| <code><![CDATA[ public function ComputeValues() | ||
| { | ||
| // Compute the priority of the ticket | ||
| $this->Set('priority', $this->ComputePriority()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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