-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix: Return correct http error codes instead of 500. Fixes #9237 #9916
Conversation
1393388
to
09deea4
Compare
09deea4
to
f3f5133
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 does not look like the correct approach to me. There is an error translator somewhere you could take a look at.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
f3f5133
to
35ff342
Compare
472b8bd
to
1c61f62
Compare
@alexec Can you provide more information to @isubasinghe, So, he can refactor? |
@sarabala1979 this is a refactor from the old one which Alex commented on. Every error goes through ToStatusError.
In a general sense, the most relevant file here is just: https://github.com/argoproj/argo-workflows/pull/9916/files#diff-6ec3cdfd853ed9734ca0ba5e09bfc02c4a2ff21478a1d264ce3e4277e40f4c69 The others are just calling 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.
Code looks great. Running well when tested locally. One quick nit, can you change the PR title to be something like fix: Return correct http error codes. Fixes #9237
or something similar?
4a61751
to
8e0605c
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. I think maybe a couple more tests?
e496756
to
23e6ac6
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue. |
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.
Might have to run make codegen
again to get the docs test to pass. I think this is due for a merge soon
e8332a3
to
b9273ff
Compare
Signed-off-by: Isitha Subasinghe <isitha@pipekit.io>
Signed-off-by: Isitha Subasinghe <isitha@pipekit.io>
194f548
to
d0c72f6
Compare
Signed-off-by: Isitha Subasinghe <isitha@pipekit.io>
Signed-off-by: Isitha Subasinghe isitha@pipekit.io
Fixes #9237
Please do not open a pull request until you have checked ALL of these:
make pre-commit -B
to fix codegen and lint problems.If changes were requested, and you've made them, dismiss the review to get it reviewed again.