mitchell852 commented on a change in pull request #2029: [Issue 1907] TO API 
for backup edge cachegroup
URL: 
https://github.com/apache/incubator-trafficcontrol/pull/2029#discussion_r188315094
 
 

 ##########
 File path: traffic_ops/app/lib/UI/Topology.pm
 ##########
 @@ -250,6 +250,15 @@ sub gen_crconfig_json {
             if ( $row->type->name =~ m/^EDGE/ ) {
                 $data_obj->{'edgeLocations'}->{ $row->cachegroup->name 
}->{'latitude'}  = $row->cachegroup->latitude + 0;
                 $data_obj->{'edgeLocations'}->{ $row->cachegroup->name 
}->{'longitude'} = $row->cachegroup->longitude + 0;
+                $data_obj->{'edgeLocations'}->{ $row->cachegroup->name 
}->{'backupLocations'}->{'fallbackToClosest'} = 
$row->cachegroup->fallback_to_closest ? "true" : "false";
+
+                my $rs_backups = 
$self->db->resultset('CachegroupFallback')->search({ primary_cg => 
$row->cachegroup->id}, {order_by => 'set_order'});
 
 Review comment:
   gen_crconfig_json was rewritten in Golang so this logic will need to be 
added there as well otherwise it will be lost. You might want to reach out to 
@rob05c 

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

Reply via email to