-
Notifications
You must be signed in to change notification settings - Fork 325
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
[WPB-14310] Move domain registration guards to their respective subsystems #4418
Conversation
153e1b3
to
50ae68a
Compare
50ae68a
to
dc5e4ed
Compare
. evalState [] | ||
. inMemoryDomainRegistrationStoreInterpreter |
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.
these two are new
32d5f62
to
e47dd6a
Compare
- Return Maybe when trying to get domain registration - Move GuardEmailDomainRegistrationTeamInvitation to TeamInvitationSubsystem
db2ff49
to
3d1bf0e
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.
Looks good, only one marginal comment
interp :: | ||
Sem | ||
'[ DRS.DomainRegistrationStore, | ||
State [DRS.StoredDomainRegistration], | ||
TinyLog, | ||
Error UserSubsystemError | ||
] | ||
() -> | ||
Either UserSubsystemError () | ||
interp = run . runError . noopLogger . evalState [] . inMemoryDomainRegistrationStoreInterpreter |
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.
Should this interpreter be defined outside the test implementation, maybe?
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.
not sure. i think it's too special-purpose to be moved to MockInterpreters, and it's not very long or complex. i'd prefer to keep it here?
https://wearezeta.atlassian.net/browse/WPB-14310
please read commit-by-commit.
Checklist
Add a new entry in an appropriate subdirectory ofchangelog.d