-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Remove PerformError
#3066
Remove PerformError
#3066
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3066 +/- ##
==========================================
+ Coverage 66.57% 66.77% +0.19%
==========================================
Files 496 497 +1
Lines 53525 53200 -325
==========================================
- Hits 35634 35522 -112
+ Misses 14275 14101 -174
+ Partials 3616 3577 -39
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Clearer API overall, LGTM!
Code: rsAPI.PerformErrorNoOperation, | ||
Msg: fmt.Sprintf("InputRoomEvents failed: %s", err), | ||
} | ||
return "", "", rsAPI.ErrNotAllowed{Err: err} |
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 probably isn't a "not allowed" error? It used to be err no op.
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.
PerformErrorNoOperation
also returned a http.StatusForbidden
in the end, so this should end up being the same error code for clients.
This removes
PerformError
, which was needed when we still had polylith.This removes quite a bunch of
Hopefully can be read commit by commit.