Skip to content
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

Add a webhook log success field to allow filtering in the UI #2061

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Feb 16, 2024

What does this pull request do? Explain your changes. (required)

Adding a success field to webhook logs so that we can easily filter based on this in the UI.

Specific updates (required)

  • Added a success field to webhook logs
  • Fixed creating webhook logs when there is no http response, in case of timeouts or connection refused etc.

How did you test each of these updates (required)

  • Tested locally on box environment

Does this pull request close any open issues?

Screenshots (optional)

Checklist

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@mjh1 mjh1 requested a review from a team as a code owner February 16, 2024 11:42
Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2024 6:41pm

@mjh1 mjh1 changed the title Add a success field to allow filtering in the UI Add a webhook log success field to allow filtering in the UI Feb 16, 2024
@@ -26,6 +26,7 @@ const requestsFieldsMap: FieldsMap = {
userId: `webhook_log.data->>'userId'`,
event: `webhook_log.data->>'event'`,
statusCode: `webhook_log.data->'response'->>'status'`,
success: `webhook_log.data->>'success'`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how simple it would be, but you can consider adding unit test for this case.

@mjh1 mjh1 merged commit 8547491 into master Feb 16, 2024
8 of 9 checks passed
@mjh1 mjh1 deleted the mh/webhook-success branch February 16, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants