-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add missing User struct fields #461
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
feat: add missing User struct fields #461
Conversation
f23b38e to
ce719d8
Compare
email_address.go
Outdated
| Reserved bool `json:"reserved"` | ||
| Verification *Verification `json:"verification"` | ||
| LinkedTo []*LinkedIdentification `json:"linked_to"` | ||
| MatchesSsoConnection bool `json:"matches_sso_connection"` |
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 be MatchesSSOConnection or do we have an existing style exception for this?
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.
This is currently the same name as what is in our main Go repo.
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.
Granted. But I'm not convinced that because we are not following Go conventions in our internal repo, that we should let that unduly influence our public Go repo. If we decide to rename this later it becomes a breaking change for our customers. But internally we can usually rename more easily. So I think we should try to "get it right the first time" in this repo.
- Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support - Enhance `User` struct with new fields: - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt` - `EnterpriseAccounts` for enterprise SSO support - Update `EmailAddress` with `MatchesSsoConnection` field - Add shared `Verification` and `LinkedIdentification` types Signed-off-by: Kenton Duprey <[email protected]>
ce719d8 to
5013049
Compare
…ction and samlAccountConnection structs Signed-off-by: Kenton Duprey <[email protected]>
…elds Signed-off-by: Kenton Duprey <[email protected]>
jfoshee
left a comment
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.
Thanks!
…OrganizationMembershipPublicUserData struct Signed-off-by: Kenton Duprey <[email protected]>
… and add ExternalAccount.PhoneNumber - Export `EnterpriseAccountConnection` type to make it publicly accessible - Add `PhoneNumber` field to `ExternalAccount` struct - Update `SAMLConnection` field references to use exported type Signed-off-by: Kenton Duprey <[email protected]>
jfoshee
left a comment
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, Thanks
* feat: add missing User struct fields - Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support - Enhance `User` struct with new fields: - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt` - `EnterpriseAccounts` for enterprise SSO support - Update `EmailAddress` with `MatchesSsoConnection` field - Add shared `Verification` and `LinkedIdentification` types Signed-off-by: Kenton Duprey <[email protected]> * refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs Signed-off-by: Kenton Duprey <[email protected]> * fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields Signed-off-by: Kenton Duprey <[email protected]> * feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct Signed-off-by: Kenton Duprey <[email protected]> * feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber - Export `EnterpriseAccountConnection` type to make it publicly accessible - Add `PhoneNumber` field to `ExternalAccount` struct - Update `SAMLConnection` field references to use exported type Signed-off-by: Kenton Duprey <[email protected]> --------- Signed-off-by: Kenton Duprey <[email protected]>
* feat: add missing User struct fields - Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support - Enhance `User` struct with new fields: - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt` - `EnterpriseAccounts` for enterprise SSO support - Update `EmailAddress` with `MatchesSsoConnection` field - Add shared `Verification` and `LinkedIdentification` types Signed-off-by: Kenton Duprey <[email protected]> * refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs Signed-off-by: Kenton Duprey <[email protected]> * fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields Signed-off-by: Kenton Duprey <[email protected]> * feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct Signed-off-by: Kenton Duprey <[email protected]> * feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber - Export `EnterpriseAccountConnection` type to make it publicly accessible - Add `PhoneNumber` field to `ExternalAccount` struct - Update `SAMLConnection` field references to use exported type Signed-off-by: Kenton Duprey <[email protected]> --------- Signed-off-by: Kenton Duprey <[email protected]>
* feat: add missing User struct fields - Add `EnterpriseAccount` type with SAML/OAuth enterprise connection support - Enhance `User` struct with new fields: - `CreatedAt`, `UpdatedAt`, `MFAEnabledAt`, `MFADisabledAt`, `LegalAcceptedAt` - `EnterpriseAccounts` for enterprise SSO support - Update `EmailAddress` with `MatchesSsoConnection` field - Add shared `Verification` and `LinkedIdentification` types * refactor: clean up deprecated Domain fields in enterpriseAccountConnection and samlAccountConnection structs * fix: correct casing for MatchesSSOConnection and AllowIDPInitiated fields * feat: add message field to Verification struct and username field to OrganizationMembershipPublicUserData struct * feat: export EnterpriseAccountConnection, SAMLAccountConnection types and add ExternalAccount.PhoneNumber - Export `EnterpriseAccountConnection` type to make it publicly accessible - Add `PhoneNumber` field to `ExternalAccount` struct - Update `SAMLConnection` field references to use exported type --------- Signed-off-by: Kenton Duprey <[email protected]>
Changes
EnterpriseAccounttype with SAML/OAuth enterprise connection supportUserstruct with new fields:CreatedAt,UpdatedAt,MFAEnabledAt,MFADisabledAt,LegalAcceptedAtEnterpriseAccountsfor enterprise SSO supportEmailAddresswithMatchesSsoConnectionfieldVerificationandLinkedIdentificationtypes