-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
#1098: remove error field from error messages #1242
#1098: remove error field from error messages #1242
Conversation
internal/errors.pb.go
Outdated
@@ -1,7 +1,7 @@ | |||
// Code generated by protoc-gen-go. DO NOT EDIT. | |||
// versions: | |||
// protoc-gen-go v1.21.0 | |||
// protoc v3.10.1 | |||
// protoc v3.7.0 |
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.
I can remove this, or commit it from all the other .pb.go
files where the bazel run has changed just this line. What do you think?
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.
I think we should be able to remove this
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.
(How) do we control the protoc version used?
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.
It's in the build environment Dockerfile at the moment. Clearly this file isn't being regenerated.
d49998e
to
690b66f
Compare
690b66f
to
3578c48
Compare
Signed-off-by: Stephan Renatus <[email protected]>
Signed-off-by: Stephan Renatus <[email protected]>
3578c48
to
263253a
Compare
Looks like removing the Error message type has implications on the openapi spec:
Not a blocker, just something I hadn't had on my radar. I'll see into replacing that with the status message (similar to |
…ntime.Error Signed-off-by: Stephan Renatus <[email protected]>
There are probably better ways to write this in than calling `AddErrorDefs` everywhere. Signed-off-by: Stephan Renatus <[email protected]>
e068cb8
to
166f49a
Compare
So far, the generate failures look reasonable. Let's drop |
I haven't fully understood how the StreamError handling works -- I think I'd rather we got this in, and I (or someone else) pick up removing StreamError next. What do you think? |
Note: I've also run find examples -name "*runtime_error*" -delete before. It seems like those are not captured by any of the *clean make targets. Signed-off-by: Stephan Renatus <[email protected]>
Signed-off-by: Stephan Renatus <[email protected]>
d055703
to
a416b83
Compare
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.
This looks great Stephan! Could you have a quick grep
through the docs to see if we talk about the old error structure anywhere?
Signed-off-by: Stephan Renatus <[email protected]>
Signed-off-by: Stephan Renatus <[email protected]>
a06f357
to
2aaabe5
Compare
Codecov Report
@@ Coverage Diff @@
## v2 #1242 +/- ##
==========================================
+ Coverage 54.45% 54.54% +0.08%
==========================================
Files 42 42
Lines 4429 4422 -7
==========================================
Hits 2412 2412
+ Misses 1754 1748 -6
+ Partials 263 262 -1
Continue to review full report at Codecov.
|
@johanbrandhorst I've done a quick grep, but I'm afraid I wasn't very thorough. |
Great work Stephan! Lets get this in :). You've reminded me that we need to have a general look at the error functions, I believe we have too many ways to configure error handling at the moment. |
Fixes #1098.
internal/errors.proto
'sStreamError
. That can be done next ;)