srijeet0406 commented on a change in pull request #5345:
URL: https://github.com/apache/trafficcontrol/pull/5345#discussion_r542868204
##########
File path: traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go
##########
@@ -629,117 +860,352 @@ WHERE
}
return nil, http.StatusInternalServerError, nil,
fmt.Errorf("querying delivery service ID %d: %s", *dsV13.ID, err.Error())
}
- if dsV13.DeepCachingType != nil {
- *dsV13.DeepCachingType =
tc.DeepCachingTypeFromString(string(*dsV13.DeepCachingType))
+ if dsV13.DeepCachingType != nil {
+ *dsV13.DeepCachingType =
tc.DeepCachingTypeFromString(string(*dsV13.DeepCachingType))
+ }
+
+ res, status, userErr, sysErr := updateV13(w, r, inf, &dsV13)
+ if res != nil {
+ return &res.DeliveryServiceNullableV12, status, userErr, sysErr
+ }
+ return nil, status, userErr, sysErr
+}
+
+func updateV13(w http.ResponseWriter, r *http.Request, inf *api.APIInfo, reqDS
*tc.DeliveryServiceNullableV13) (*tc.DeliveryServiceNullableV13, int, error,
error) {
Review comment:
Yeah this is not a new change, it was just moved around.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]