fix: change request_body and response_body columns to text by vm-001 · Pull Request #38 · webhookx-io/webhookx

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Comments

Conversation

@vm-001

Copy link

Collaborator

@vm-001 vm-001 commented

Oct 1, 2024

edited

Loading

Summary

  1. Fixed AtteptDetail insertion may fail when the response body is not JSON
  2. Changed AttemptDetailt.ResponseBody to pointer type to not store literal null in the database.

@codecov

Copy link

codecov bot commented

Oct 1, 2024

edited

Loading

Codecov Report

Attention: Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
db/dao/attempt_detail_dao.go 75.00% 1 Missing and 1 partial ⚠️
Flag Coverage Δ
integration 64.42% <91.30%> (+0.03%) ⬆️
unit 12.58% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
admin/api/attempts.go 100.00% <100.00%> (ø)
db/entities/attempt.go 100.00% <ø> (+11.76%) ⬆️
db/entities/types.go 50.00% <100.00%> (+50.00%) ⬆️
worker/worker.go 66.83% <100.00%> (ø)
db/dao/attempt_detail_dao.go 88.88% <75.00%> (-11.12%) ⬇️

@vm-001 vm-001 force-pushed the fix/attempt-details-schema branch from 4913240 to d1bfca8 Compare

October 1, 2024 16:13

@webhookx-x webhookx-x changed the title fix: change request_body and response_body to text fix: change request_body and response_body columns to text

Oct 2, 2024

@vm-001 vm-001 force-pushed the fix/attempt-details-schema branch from 9b289e1 to 266e021 Compare

October 2, 2024 06:40

@webhookx-x webhookx-x self-requested a review

October 2, 2024 06:40

@vm-001 vm-001 force-pushed the fix/attempt-details-schema branch from 266e021 to 07f12dc Compare

October 2, 2024 06:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cchenggit cchenggit cchenggit approved these changes

@webhookx-x webhookx-x Awaiting requested review from webhookx-x

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vm-001 @cchenggit @webhookx-x