-
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 <[email protected]> Remove repoerr from things service Signed-off-by: WashingtonKK <[email protected]> Remove repoerr in services Signed-off-by: WashingtonKK <[email protected]> Fix ci Signed-off-by: WashingtonKK <[email protected]> Add servive error check Signed-off-by: WashingtonKK <[email protected]> Wrap permission list error Signed-off-by: WashingtonKK <[email protected]> Wrap permission list error Signed-off-by: WashingtonKK <[email protected]> Modify tests and keep internal errors Signed-off-by: WashingtonKK <[email protected]> Fix tests Signed-off-by: WashingtonKK <[email protected]> fix: enhance error encoding Signed-off-by: WashingtonKK <[email protected]> fix: update api docs Signed-off-by: WashingtonKK <[email protected]> feat: update checkdomain and checkpolicy Signed-off-by: WashingtonKK <[email protected]> fix: errors on service layer Signed-off-by: WashingtonKK <[email protected]> fix: tests Signed-off-by: WashingtonKK <[email protected]> fix: tests Signed-off-by: WashingtonKK <[email protected]> update tests Signed-off-by: WashingtonKK <[email protected]> fix: property based tests Signed-off-by: WashingtonKK <[email protected]> Remove repo error from service layer Signed-off-by: WashingtonKK <[email protected]> fix test' Signed-off-by: WashingtonKK <[email protected]> refactor errors: Signed-off-by: WashingtonKK <[email protected]> fix: property based tests Signed-off-by: WashingtonKK <[email protected]> fix: ci Signed-off-by: WashingtonKK <[email protected]> fix ci Signed-off-by: WashingtonKK <[email protected]> enhance errors Signed-off-by: WashingtonKK <[email protected]> fix: tests Signed-off-by: WashingtonKK <[email protected]> remove unused error Signed-off-by: WashingtonKK <[email protected]> update bootstrap and certs tests Signed-off-by: WashingtonKK <[email protected]> fix ci Signed-off-by: WashingtonKK <[email protected]> Update docs Signed-off-by: WashingtonKK <[email protected]> update bootstrap test Signed-off-by: WashingtonKK <[email protected]> fix auth tests Signed-off-by: WashingtonKK <[email protected]> fix typo: Signed-off-by: WashingtonKK <[email protected]> fix ci Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]> refactor errors Signed-off-by: WashingtonKK <[email protected]> refactor errors Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]> fix: certs and twins tests Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]> fix: issue token Signed-off-by: WashingtonKK <[email protected]> refactor error handling and fix tests: Signed-off-by: WashingtonKK <[email protected]> fix tests and remove redundant error Signed-off-by: WashingtonKK <[email protected]> Update users/service.go Co-authored-by: Arvindh <[email protected]> Signed-off-by: WashingtonKK <[email protected]> modify delete policies error Signed-off-by: WashingtonKK <[email protected]> revert error types Signed-off-by: WashingtonKK <[email protected]> fix: ci Signed-off-by: WashingtonKK <[email protected]> revert policy rollback error Signed-off-by: WashingtonKK <[email protected]> revert domain check Signed-off-by: WashingtonKK <[email protected]> remove debug logs Signed-off-by: WashingtonKK <[email protected]> fix bootstrap property based tests Signed-off-by: WashingtonKK <[email protected]> refactor bootstrap service error Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: WashingtonKK <[email protected]> Signed-off-by: JeffMboya <[email protected]>
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