ocket8888 commented on a change in pull request #2979: Fix TO Go DSS GET 
endpoints to check tenancy
URL: https://github.com/apache/trafficcontrol/pull/2979#discussion_r254028516
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go
 ##########
 @@ -142,7 +143,21 @@ func (dss *TODeliveryServiceServer) readDSS(tx *sqlx.Tx, 
user *auth.CurrentUser,
                orderby = "deliveryService"
        }
 
-       query, err := selectQuery(orderby, strconv.Itoa(limit), 
strconv.Itoa(offset))
+       tenancyEnabled, err := tenant.IsTenancyEnabledTx(tx.Tx)
 
 Review comment:
   This has been my understanding, that tenancy is enabled by default, but 
still optional - though I have heard that the decision to make it not optional 
has been made (and not actually done yet).

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