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

Consolidate error handling configuration #1265

Merged
merged 1 commit into from
May 9, 2020

Conversation

johanbrandhorst
Copy link
Collaborator

All unary responses are now handled with a single function,
and are configured in a single place.

Would appreciate some feedback on this as it removes a lot of API.

runtime/mux.go Outdated Show resolved Hide resolved
runtime/mux.go Outdated Show resolved Hide resolved
@johanbrandhorst
Copy link
Collaborator Author

@jgiles I would appreciate your thoughts on this redesign as a user.

@johanbrandhorst johanbrandhorst force-pushed the consolidate-error-handling-configuration branch from e4b06d2 to fdc7157 Compare May 2, 2020 15:47
@johanbrandhorst johanbrandhorst mentioned this pull request May 2, 2020
13 tasks
@johanbrandhorst
Copy link
Collaborator Author

This will need documentation changes

@codecov-io
Copy link

codecov-io commented May 2, 2020

Codecov Report

Merging #1265 into v2 will increase coverage by 0.47%.
The diff coverage is 44.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2    #1265      +/-   ##
==========================================
+ Coverage   54.01%   54.48%   +0.47%     
==========================================
  Files          42       41       -1     
  Lines        4360     4311      -49     
==========================================
- Hits         2355     2349       -6     
+ Misses       1747     1707      -40     
+ Partials      258      255       -3     
Impacted Files Coverage Δ
runtime/pattern.go 89.10% <ø> (ø)
runtime/mux.go 62.26% <33.33%> (+5.70%) ⬆️
runtime/errors.go 45.45% <100.00%> (-1.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 53da419...245b80d. Read the comment docs.

@johanbrandhorst johanbrandhorst force-pushed the consolidate-error-handling-configuration branch from fdc7157 to 245b80d Compare May 3, 2020 10:51
docs/_docs/customizingyourgateway.md Outdated Show resolved Hide resolved
runtime/errors.go Show resolved Hide resolved
@johanbrandhorst johanbrandhorst force-pushed the consolidate-error-handling-configuration branch 2 times, most recently from 96ee615 to 89f6a52 Compare May 9, 2020 12:11
All unary and streaming error responses are now
handled with a single function each,
and are configured in a single place.
@johanbrandhorst johanbrandhorst force-pushed the consolidate-error-handling-configuration branch from 89f6a52 to 129822a Compare May 9, 2020 19:10
@johanbrandhorst johanbrandhorst merged commit 029cfe8 into v2 May 9, 2020
@johanbrandhorst johanbrandhorst deleted the consolidate-error-handling-configuration branch May 9, 2020 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants