You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/10/19 16:07:46 UTC

[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #5164: Topologies support for assigning ORG servers to Delivery Services

zrhoffman commented on a change in pull request #5164:
URL: https://github.com/apache/trafficcontrol/pull/5164#discussion_r507875281



##########
File path: traffic_ops/traffic_ops_golang/server/servers.go
##########
@@ -767,17 +774,18 @@ func getServers(h http.Header, params map[string]string, tx *sqlx.Tx, user *auth
 	// Query Parameters to Database Query column mappings
 	// see the fields mapped in the SQL query
 	queryParamsToSQLCols := map[string]dbhelpers.WhereColumnInfo{
-		"cachegroup":       dbhelpers.WhereColumnInfo{"s.cachegroup", api.IsInt},
-		"parentCachegroup": dbhelpers.WhereColumnInfo{"cg.parent_cachegroup_id", api.IsInt},
-		"cdn":              dbhelpers.WhereColumnInfo{"s.cdn_id", api.IsInt},
-		"id":               dbhelpers.WhereColumnInfo{"s.id", api.IsInt},
-		"hostName":         dbhelpers.WhereColumnInfo{"s.host_name", nil},
-		"physLocation":     dbhelpers.WhereColumnInfo{"s.phys_location", api.IsInt},
-		"profileId":        dbhelpers.WhereColumnInfo{"s.profile", api.IsInt},
-		"status":           dbhelpers.WhereColumnInfo{"st.name", nil},
-		"topology":         dbhelpers.WhereColumnInfo{"tc.topology", nil},
-		"type":             dbhelpers.WhereColumnInfo{"t.name", nil},
-		"dsId":             dbhelpers.WhereColumnInfo{"dss.deliveryservice", nil},
+		"cachegroup":       {"s.cachegroup", api.IsInt},
+		"parentCachegroup": {"cg.parent_cachegroup_id", api.IsInt},
+		"cdn":              {"s.cdn_id", api.IsInt},
+		"id":               {"s.id", api.IsInt},
+		"hostName":         {"s.host_name", nil},
+		"physLocation":     {"s.phys_location", api.IsInt},
+		"profileId":        {"s.profile", api.IsInt},
+		"status":           {"st.name", nil},
+		"topology":         {"tc.topology", nil},
+		"type":             {"t.name", nil},
+		"dsId":             {"dss.deliveryservice", nil},
+		"orgType":          {":orgType", nil},

Review comment:
       Changed in 1076fef558




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org