Skip to content

Conversation

isovector
Copy link
Contributor

@isovector isovector commented Sep 20, 2021

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 to SAMLUserStore.

To be rebased onto develop after #1787 lands.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information:
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

@isovector isovector requested a review from fisx September 20, 2021 19:40
Base automatically changed from idp-effect to develop September 20, 2021 21:04
Copy link
Contributor

@fisx fisx left a 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

@fisx fisx self-requested a review September 21, 2021 07:03
Copy link
Contributor

@fisx fisx left a 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
Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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!

@fisx fisx merged commit 34e693b into develop Sep 23, 2021
@fisx fisx deleted the misc-effects branch September 23, 2021 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants