-
Notifications
You must be signed in to change notification settings - Fork 672
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
MG-2117 - Remove repository errors from API layer #2119
Conversation
e18db8e
to
ec7b4b4
Compare
33bd7ef
to
5916549
Compare
5916549
to
00cda2c
Compare
00cda2c
to
b50c998
Compare
In |
b50c998
to
00134ae
Compare
5ca3fe8
to
0074cc3
Compare
1712df9
to
013b104
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.
@WashingtonKK ,
Please revert back to original, My suggestion doesn't works properly for domain related operations
It fails at domain authroization
auth/service_test.go
Outdated
@@ -231,9 +248,15 @@ func TestIssue(t *testing.T) { | |||
ObjectType: auth.DomainType, | |||
Permission: auth.MembershipPermission, | |||
}, | |||
checkPolicyRequest2: auth.PolicyReq{ |
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.
Rename checkPolicyRequest
fields to add more context. For example checkPolicyReq
and checkPolicyWithStatusReq
.
3b0c289
to
4fa7488
Compare
532e049
to
3f4bcd6
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.
LGTM
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Remove repoerr from things service Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Remove repoerr in services Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Fix ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Add servive error check Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Wrap permission list error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Wrap permission list error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Modify tests and keep internal errors Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Fix tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: enhance error encoding Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: update api docs Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> feat: update checkdomain and checkpolicy Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: errors on service layer Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> update tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: property based tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Remove repo error from service layer Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix test' Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> refactor errors: Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: property based tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> enhance errors Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> remove unused error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> update bootstrap and certs tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Update docs Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> update bootstrap test Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix auth tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix typo: Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> refactor errors Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> refactor errors Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: certs and twins tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: issue token Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> refactor error handling and fix tests: Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix tests and remove redundant error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Update users/service.go Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com> Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> modify delete policies error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> revert error types Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix: ci Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> revert policy rollback error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> revert domain check Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> remove debug logs Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> fix bootstrap property based tests Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> refactor bootstrap service error Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com> Signed-off-by: JeffMboya <jangina.mboya@gmail.com>
What type of PR is this?
This is a feature that removes removes repository errors from the api response and only the service error and api errors are sent as part of the response. All errors are logged and can be evaluated from the service logs.
What does this do?
Ensures only errors from the service and api are sent as part of the API response, and leaves repo errors at service level.
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
No
Did you document any new/modified feature?
No
Notes