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

Support non-JSON encodings by health.Handler #284

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

tchssk
Copy link
Member

@tchssk tchssk commented Sep 6, 2023

I think clue should support the same encodings as Goa.

@tchssk
Copy link
Member Author

tchssk commented Sep 6, 2023

Oh, CI is failing since 301d422.

@tchssk tchssk marked this pull request as ready for review September 6, 2023 17:13
@raphael
Copy link
Member

raphael commented Sep 6, 2023

That makes sense, thank you. I'll fix CI. Might be good to update the header comment to reflect the change too. The comment should probably not assume that the user knows Goa so should probably be explicit about the supported content types.

@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2023

Codecov Report

Merging #284 (8504b65) into main (35fa34b) will decrease coverage by 0.19%.
The diff coverage is 81.81%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #284      +/-   ##
==========================================
- Coverage   94.45%   94.26%   -0.19%     
==========================================
  Files          43       43              
  Lines        2309     2338      +29     
==========================================
+ Hits         2181     2204      +23     
- Misses         94       98       +4     
- Partials       34       36       +2     
Flag Coverage Δ
micro 94.26% <81.81%> (-0.19%) ⬇️

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

Files Changed Coverage Δ
health/checker.go 88.00% <78.57%> (-12.00%) ⬇️
health/handler.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tchssk
Copy link
Member Author

tchssk commented Sep 7, 2023

I fixed godoc and added an example to README.

@raphael raphael merged commit def24ce into goadesign:main Sep 7, 2023
1 check passed
@tchssk tchssk deleted the health-handler-encoder branch September 8, 2023 01:20
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.

3 participants