dangogh commented on a change in pull request #1922: TO golang -- add
capability for custom changelog message per object type
URL:
https://github.com/apache/incubator-trafficcontrol/pull/1922#discussion_r170410993
##########
File path: traffic_ops/traffic_ops_golang/deliveryservice/request/requests.go
##########
@@ -430,6 +430,20 @@ func (req *TODeliveryServiceRequest) Delete(db *sqlx.DB,
user auth.CurrentUser)
return nil, tc.NoError
}
+// ChangeLogMessage implements the api.ChangeLogger interface for a custom log
message
+func (req *TODeliveryServiceRequest) ChangeLogMessage(action string, db
*sqlx.DB) (string, error) {
Review comment:
possibly with foreign keys, but the id probably would be enough.. we
should discuss more..
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services