shamrickus commented on a change in pull request #5044:
URL: https://github.com/apache/trafficcontrol/pull/5044#discussion_r497601365
##########
File path: lib/go-tc/invalidationjobs.go
##########
@@ -272,9 +275,83 @@ func (job *InvalidationJobInput) Validate(tx *sql.Tx)
error {
if len(errs) > 0 {
return errors.New(strings.Join(errs, ", "))
}
+
+ errs = job.ValidateUniqueness(tx, dsID)
+ if len(errs) > 0 {
+ return errors.New(strings.Join(errs, ", "))
Review comment:
`errs` is a misnomer, it's actually a `[]string`. I'll change it so that
the naming makes more sense (and it will just actually return an error instead
of a string).
----------------------------------------------------------------
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]