-
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] make existing registration api enterprise aware (cont.) #4437
base: develop
Are you sure you want to change the base?
[WPB-14310] make existing registration api enterprise aware (cont.) #4437
Conversation
c89fc06
to
0c04736
Compare
|
||
data DomainRegistration' = DomainRegistration' | ||
{ domain :: Domain, | ||
settings :: DomainRegistrationSettings', |
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.
Can we make this a Maybe
and remove the None
case? I think preauthorized can also be outside of this, because its not really a setting, but its just a step in configuration. I think the main logic of wire-server (i.e. regsitrations and logins) are not affected by it being pre-authorized, it is treated the same as not having any config.
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.
right, domain was a hickup. and yes, maybe is nicer than none. 👍 bd36d47
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.
on second thought, the code is using the domain field in DomainRegistration a lot, and if we want to replace that with DomainRegistration', the code change in the logic would explode a little, and the new code wouldn't exactly be more concise.
i'll tentatively add the domain back in, let's see if i can convince you.
96afdab
to
ed8021c
Compare
Also: - rename lots of stuff (necessary) - add more unit tests (roundtrip stuff)
14eb4ab
to
2f28c05
Compare
DomainRegistrationResponse.authorized_team -> DomainRegistrationResponse.team this fixes a golden test that was broken before.
see comment in this commit.
This reverts commit 8c52286.
2a1ece6
to
8493363
Compare
9fe1e4e
to
dfadaf9
Compare
…ting-registration-api-enterprise-aware-3' into WPB-14310-make-existing-registration-api-enterprise-aware-3
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! (can't formally approve as i've opened this PR)
libs/wire-subsystems/src/Wire/EnterpriseLoginSubsystem/Interpreter.hs
Outdated
Show resolved
Hide resolved
…ting-registration-api-enterprise-aware-3' into WPB-14310-make-existing-registration-api-enterprise-aware-3
https://wearezeta.atlassian.net/browse/WPB-14310
Checklist
changelog.d