ocket8888 commented on a change in pull request #5475:
URL: https://github.com/apache/trafficcontrol/pull/5475#discussion_r569813915
##########
File path: traffic_ops/traffic_ops_golang/crconfig/handler.go
##########
@@ -48,7 +49,8 @@ func Handler(w http.ResponseWriter, r *http.Request) {
defer inf.Close()
Review comment:
This constructs - but does not store - the CDN Snapshot, and returns it
to the client. Other components "MUST NOT" use it because it represents what
the new CDN Snapshot *would be* **if** one were taken. Components MUST use the
stored Snapshot, as that is the configuration that is intended to be active.
`GetCRConfigNew` itself may not be used outside of tests, but the Go client
is not the only supported client of the TO API; TP uses it to display the
changes to the CRConfig (ideally it would show the entire Snapshot, but that's
another matter entirely) that would be made if a new Snapshot were taken, which
is absolutely vital to operators.
----------------------------------------------------------------
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:
[email protected]