-
Notifications
You must be signed in to change notification settings - Fork 253
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
graphql: add debugMessages query #2052
Conversation
graphql2/graphqlapp/query.go
Outdated
return "", nil | ||
} | ||
|
||
return notification.Dest{Type: obj.Dest.Type, Value: obj.Status.SrcValue}.String(), nil |
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.
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.
Good catch, we should use the same formatting as destination and keep it as an empty string if value is blank.
*s = StateFailedPerm | ||
case "stale": | ||
*s = StateFailedTemp | ||
default: |
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 switch missing the bundled
case?
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.
Ooh that's a good call, we may need to add a new state. Normally "bundled" messages aren't processed at all, but they would still be returned here.
Co-authored-by: David Talbot <david.talbot@target.com>
@arurao only alert notifications and bundles have an alert ID, test, validation, on-call, etc.. don't. Alert status updates should but don't due to an unrelated bug |
Description:
Adds a
debugMessages
query that can be used by an admin to retrieve a list of recent messages from theoutgoing_messages
table.