[jira] [Assigned] (TC-71) Remove hardcoded reference to ccr in UI/DeliveryService.pm
[ https://issues.apache.org/jira/browse/TC-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Mitchell reassigned TC-71: - Assignee: Jeremy Mitchell > Remove hardcoded reference to ccr in UI/DeliveryService.pm > -- > > Key: TC-71 > URL: https://issues.apache.org/jira/browse/TC-71 > Project: Traffic Control > Issue Type: Improvement > Components: Traffic Ops >Reporter: Jeremy Mitchell >Assignee: Jeremy Mitchell >Priority: Minor > Labels: deliveryservice.pm, routing > > because the value of http.routing.name in applicationContext.xml can be > anything (defaults to tr), this needs to be dynamic rather than referencing > the hard-coded value of 'ccr'. So my suggestion would be: > create a global parameter using a database migration file and name the > parameter http.routing.name and set the default value to 'tr'. then in the > code, fetch the value of http.routing.name and use that on line 147 & 150 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L147 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L150 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (TC-71) Remove hardcoded reference to ccr in UI/DeliveryService.pm
[ https://issues.apache.org/jira/browse/TC-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Mitchell reassigned TC-71: - Assignee: Rawlin Peters (was: Jeremy Mitchell) > Remove hardcoded reference to ccr in UI/DeliveryService.pm > -- > > Key: TC-71 > URL: https://issues.apache.org/jira/browse/TC-71 > Project: Traffic Control > Issue Type: Improvement > Components: Traffic Ops >Reporter: Jeremy Mitchell >Assignee: Rawlin Peters >Priority: Minor > Labels: deliveryservice.pm, routing > > because the value of http.routing.name in applicationContext.xml can be > anything (defaults to tr), this needs to be dynamic rather than referencing > the hard-coded value of 'ccr'. So my suggestion would be: > create a global parameter using a database migration file and name the > parameter http.routing.name and set the default value to 'tr'. then in the > code, fetch the value of http.routing.name and use that on line 147 & 150 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L147 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L150 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (TC-71) Remove hardcoded reference to ccr in UI/DeliveryService.pm
[ https://issues.apache.org/jira/browse/TC-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Scrimo reassigned TC-71: --- Assignee: (was: Robert Scrimo) > Remove hardcoded reference to ccr in UI/DeliveryService.pm > -- > > Key: TC-71 > URL: https://issues.apache.org/jira/browse/TC-71 > Project: Traffic Control > Issue Type: Improvement > Components: Traffic Ops >Reporter: Jeremy Mitchell >Priority: Minor > Labels: deliveryservice.pm, routing > > because the value of http.routing.name in applicationContext.xml can be > anything (defaults to tr), this needs to be dynamic rather than referencing > the hard-coded value of 'ccr'. So my suggestion would be: > create a global parameter using a database migration file and name the > parameter http.routing.name and set the default value to 'tr'. then in the > code, fetch the value of http.routing.name and use that on line 147 & 150 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L147 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L150 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (TC-71) Remove hardcoded reference to ccr in UI/DeliveryService.pm
[ https://issues.apache.org/jira/browse/TC-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Scrimo reassigned TC-71: --- Assignee: Robert Scrimo > Remove hardcoded reference to ccr in UI/DeliveryService.pm > -- > > Key: TC-71 > URL: https://issues.apache.org/jira/browse/TC-71 > Project: Traffic Control > Issue Type: Improvement > Components: Traffic Ops >Reporter: Jeremy Mitchell >Assignee: Robert Scrimo >Priority: Minor > > because the value of http.routing.name in applicationContext.xml can be > anything (defaults to tr), this needs to be dynamic rather than referencing > the hard-coded value of 'ccr'. So my suggestion would be: > create a global parameter using a database migration file and name the > parameter http.routing.name and set the default value to 'tr'. then in the > code, fetch the value of http.routing.name and use that on line 147 & 150 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L147 > https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/UI/DeliveryService.pm#L150 -- This message was sent by Atlassian JIRA (v6.3.15#6346)