-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Rejections in Lookout #3663
Conversation
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
…ma/rejection-lookout
Signed-off-by: Chris Martin <[email protected]>
assert.Equal(t, expectedJobError, jobError) | ||
|
||
// If a row is bad then we should return an error and no updates should happen | ||
_, err = ldb.db.Exec(armadacontext.Background(), "DELETE FROM job_error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth checking that if you try to update it with a different value, it keeps the original value?
internal/lookoutv2/application.go
Outdated
ctx := armadacontext.New(params.HTTPRequest.Context(), logger) | ||
result, err := getJobErrorRepo.GetJobErrorMessage(ctx, params.GetJobErrorRequest.JobID) | ||
if err != nil { | ||
return operations.NewGetJobRunDebugMessageBadRequest().WithPayload(conversions.ToSwaggerError(err.Error())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this right? Looks like a copy paste error with the wrong operation message
…ma/rejection-lookout
Signed-off-by: Chris Martin <[email protected]>
Signed-off-by: Chris Martin <[email protected]>
Backend changes necessary to show rejection messages in lookout. Changes here are:
REJECTED
state to lookoutjob_error
table to the lookout dbREJECTED
if the event failure message is of typeError_JobRejected
. We also store the error in thejob_error
tableWe shouldn't merge this until the frontend code is ready.