[
https://issues.apache.org/jira/browse/TC-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15702282#comment-15702282
]
ASF GitHub Bot commented on TC-46:
----------------------------------
Github user mitchell852 commented on a diff in the pull request:
https://github.com/apache/incubator-trafficcontrol/pull/104#discussion_r89809514
--- Diff: traffic_ops/client/fixtures/delivery_service.go ---
@@ -22,30 +22,30 @@ func DeliveryServices()
*client.GetDeliveryServiceResponse {
return &client.GetDeliveryServiceResponse{
Response: []client.DeliveryService{
client.DeliveryService{
- ID: "001",
+ ID: 001,
XMLID: "ds-test",
Active: true,
- DSCP: "40",
+ DSCP: 40,
Signed: false,
- QStringIgnore: "1",
- GeoLimit: "0",
- GeoProvider: "0",
- DNSBypassTTL: "30",
+ QStringIgnore: 1,
+ GeoLimit: 0,
+ GeoProvider: 0,
+ DNSBypassTTL: 30,
Type: "HTTP",
ProfileName: "ds-123",
CDNName: "test-cdn",
- CCRDNSTTL: "3600",
- GlobalMaxTPS: "0",
- MaxDNSAnswers: "0",
- MissLat: "44.654321",
- MissLong: "-99.123456",
- Protocol: "0",
+ CCRDNSTTL: 3600,
+ GlobalMaxTPS: 0,
+ MaxDNSAnswers: 0,
+ MissLat: 44.654321,
+ MissLong: -99.123456,
+ Protocol: 0,
IPV6RoutingEnabled: true,
- RangeRequestHandling: "0",
+ RangeRequestHandling: 0,
TRResponseHeaders:
"Access-Control-Allow-Origin: *",
- MultiSiteOrigin: "0",
+ MultiSiteOrigin: 0,
--- End diff --
same comment as above. this is a bool in the database.
> Update Traffic Ops client to work with output of Postgres APIs
> --------------------------------------------------------------
>
> Key: TC-46
> URL: https://issues.apache.org/jira/browse/TC-46
> Project: Traffic Control
> Issue Type: Bug
> Components: Traffic Ops Client
> Affects Versions: 2.0.0
> Reporter: David Neuman
> Assignee: David Neuman
> Fix For: 2.0.0
>
>
> As we move to postgres, the Traffic Ops APIs now return fields in formats
> other than string. The Traffic Ops client needs to be updated to support the
> types that are returned, otherwise json decode fails.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)