mitchell852 commented on a change in pull request #5329:
URL: https://github.com/apache/trafficcontrol/pull/5329#discussion_r530576656
##########
File path: traffic_ops/traffic_ops_golang/server/update.go
##########
@@ -102,20 +102,6 @@ func UpdateHandler(w http.ResponseWriter, r *http.Request)
{
return
}
- err = api.CreateChangeLogBuildMsg(
- api.ApiChange,
- api.Updated,
- inf.User,
- inf.Tx.Tx,
- "server-update-status",
- hostName,
- map[string]interface{}{"host_name": hostName},
- )
- if err != nil {
- api.HandleErr(w, r, inf.Tx.Tx, http.StatusInternalServerError,
nil, errors.New("writing changelog: "+err.Error()))
- return
- }
-
Review comment:
```
// UpdateHandler implements an http handler that updates a server's
upd_pending and reval_pending values.
func UpdateHandler(w http.ResponseWriter, r *http.Request) {
```
Yeah, this handler is specifically for the `servers/{id-or-name}/update`
route who's sole purpose is to update upd_pending and reval_pending values.
----------------------------------------------------------------
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]