-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Add API::Errors
concern for API controllers and add i18n values for strings
#27925
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #27925 +/- ##
==========================================
- Coverage 85.01% 84.89% -0.13%
==========================================
Files 1059 1059
Lines 28277 28376 +99
Branches 4538 4551 +13
==========================================
+ Hits 24040 24090 +50
- Misses 3074 3124 +50
+ Partials 1163 1162 -1 ☔ View full report in Codecov by Sentry. |
5b9518c
to
f601ff8
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
f601ff8
to
509caea
Compare
This pull request has resolved merge conflicts and is ready for review. |
509caea
to
7a2cb85
Compare
7a2cb85
to
04c9490
Compare
04c9490
to
454e8ed
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
454e8ed
to
4e63e64
Compare
Rebased after #28864 added the coverage for missing classes. This one is now basically two things: moving the error handling to concern, adding i18n strings. If we only want one of these, but not the other (or want them in sepsearate PRs), let me know. |
This pull request has resolved merge conflicts and is ready for review. |
api/base
controller spec, add i18n values for stringsAPI::Errors
concern for API controllers and add i18n values for strings
4e63e64
to
c64c011
Compare
c64c011
to
91f54a2
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
91f54a2
to
c533a02
Compare
Rebased this after errors concern merged, so is this now just a) the i18n stuff, b) helper methods for that, c) spec improvement to check response body in addition to code. I think that spec stuff is helpful, but am less certain about the i18n stuff. Will pull out spec change into separate PR, and then probably close this and drop remainder. |
Closing in favor of linked PR. |
Changes to the
Api::BaseController
error handling:Api::ErrorHandling
concern