-
Notifications
You must be signed in to change notification settings - Fork 333
Polysemy: Separate more Cassandra effects from Spar #1792
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
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.
pls rebase or merge
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.
all good to go!
scimUserTimesStoreToCassandra $ | ||
scimExternalIdStoreToCassandra $ | ||
runExceptT $ | ||
runReaderT action ctx |
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.
pretty! :)
Maybe IdP -> | ||
TeamId -> | ||
Text -> | ||
MaybeT (Scim.ScimHandler (Spar r)) (Scim.StoredUser ST.SparTag) |
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 like that you made the type signature multi-line here (and in some other places).
embed @m . \case | ||
Get -> Data.getDefaultSsoCode | ||
Store ip -> Data.storeDefaultSsoCode ip | ||
Delete -> Data.deleteDefaultSsoCode |
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 at some point we can resolve Spar.Data
into these intepreter modules, what do you think?
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.
That sounds good to me!
This PR rips out a bunch more effects from Spar for polysemization and eventual unit-testing support:
ScimExternalIdStore
ScimUserTimesStore
ScimTokenStore
DefaultSsoCode
Also, it renames
SAMLUser
toSAMLUserStore
.To be rebased onto
develop
after #1787 lands.Checklist
changelog.d
.