Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-71

Remove hardcoded reference to ccr in UI/DeliveryService.pm

    XMLWordPrintableJSON

    Details

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              rawlin Rawlin Peters
              Reporter:
              mitchell852@apache.org Jeremy Mitchell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: