-
Notifications
You must be signed in to change notification settings - Fork 334
[WPB-20053] Create user groups with scim. #4848
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
Conversation
| <> (Text.decodeUtf8With lenientDecode . toStrict . errBody $ serr) | ||
| ) | ||
| werr <- renderSparErrorWithLogging err <&> httpErrorToWaiError | ||
| -- TODO: we don't want to include the RichError part of |
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.
Was staring at the RichError data construction as well and wondering when if ever is the rich part used. It seems it's currently used in the Eq instance (newly added in this PR), and then constructed/used here services/brig/src/Brig/API/Error.hs:203:deleteUserError (DeleteUserPendingCode t) = RichError deletionCodePending (DeletionCodeTimeout t) [], everywhere else it's filled with ()/Null. I guess the question is: what is it's purpose, internal for debugging or could the outside world see it?
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.
I suppose it's been solely for the deleteUserError use case so far then, but now we have two use cases :)
| notifyAdmins ug | ||
| pure ug | ||
| where | ||
| guardMembersInTeam :: Sem r () |
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.
i rewrote this because i found the old code hard to read. probably should have done that in another PR...
| renderSparError (SAML.CustomError (SparSomeHttpError err)) = err | ||
| -- Other | ||
| renderSparError (SAML.CustomServant err) = Left err | ||
| renderSparError (SAML.CustomServant err) = serverErrorToHttpError 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.
If httpErrorToServerError . serverErrorToHttpError == id does not hold, the error will be rendered differently to the client. I think all the differences between the two should be cosmetic, though?
| <> (Text.decodeUtf8With lenientDecode . toStrict . errBody $ serr) | ||
| ) | ||
| werr <- renderSparErrorWithLogging err <&> httpErrorToWaiError | ||
| -- TODO: we don't want to include the RichError part of |
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.
I suppose it's been solely for the deleteUserError use case so far then, but now we have two use cases :)
Checklist
changelog.d