You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "ocket8888 (via GitHub)" <gi...@apache.org> on 2023/08/28 17:12:14 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a diff in pull request #7750: TO: Add fields to servers v5 endpoints to indicate update failures

ocket8888 commented on code in PR #7750:
URL: https://github.com/apache/trafficcontrol/pull/7750#discussion_r1307696075


##########
lib/go-tc/servers.go:
##########
@@ -1356,7 +1358,9 @@ type ServerV50 struct {
 	// The time at which revalidations for this server were last updated by t3c.
 	RevalApplyTime *time.Time `json:"revalApplyTime" db:"revalidate_apply_time"`
 	// The time at which revalidations were last queued for this server.
-	RevalUpdateTime   *time.Time `json:"revalUpdateTime" db:"revalidate_update_time"`
+	RevalUpdateTime *time.Time `json:"revalUpdateTime" db:"revalidate_update_time"`
+	// If the last reval apply failed for this server
+	RevalUpdateFailed *bool      `json:"revalUpdateFailed" db:"revalidate_update_failed"`

Review Comment:
   These have a default value; do they need to be reference types? When would this be `nil`, and what does that mean?



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

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

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