mitchell852 commented on a change in pull request #3662: TP: empty / duplicate 
consistent hash query params for a ds need to be re…
URL: https://github.com/apache/trafficcontrol/pull/3662#discussion_r291248054
 
 

 ##########
 File path: traffic_portal/app/src/common/api/DeliveryServiceRequestService.js
 ##########
 @@ -26,6 +26,9 @@ var DeliveryServiceRequestService = function(Restangular, 
$http, $q, locationUti
        this.createDeliveryServiceRequest = function(dsRequest) {
                var request = $q.defer();
 
+               // strip out any falsy values or duplicates from 
consistentHashQueryParams
+               dsRequest.deliveryService.consistentHashQueryParams = 
_.compact(Array.from(new 
Set(dsRequest.deliveryService.consistentHashQueryParams)));
 
 Review comment:
   i thought we tried this and it fails to compile with browserify
   
   `filter(i => i)`

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


With regards,
Apache Git Services

Reply via email to