ocket8888 commented on code in PR #6855:
URL: https://github.com/apache/trafficcontrol/pull/6855#discussion_r881999104


##########
traffic_portal/app/src/common/modules/form/deliveryService/edit/FormEditDeliveryServiceController.js:
##########
@@ -299,7 +299,10 @@ var FormEditDeliveryServiceController = 
function(deliveryService, origin, topolo
                                
deliveryServiceService.deleteDeliveryService(deliveryService)
                                        .then(
                                                function() {
-                                                       
messageModel.setMessages([ { level: 'success', text: 'Delivery service [ ' + 
deliveryService.xmlId + ' ] deleted' } ], true);
+                                                       
messageModel.setMessages([

Review Comment:
   two main reasons
   
   1. That's what it already was doing, so this PR merely isn't a fix for it - 
it's not introducing the unwanted behavior.
   2. This hard-codes the response, because all Traffic Ops returns is "ds was 
deleted". The custom Alert puts the XMLID in the message. Fixing Traffic Ops to 
include that information is involved, because Delivery Services use the CRUDer, 
so it's difficult to change nearly anything about the endpoint without 
retooling the whole API. Which is out of scope for this change.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to