-
Notifications
You must be signed in to change notification settings - Fork 332
Sqservices 1548 be csv export from tm created on date missing in some instances #2543
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Deploy spar before galley |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| The team member CSV export now fills `created_on` for SCIM users |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,9 @@ module Wire.API.User | |
| ( UserIdList (..), | ||
| QualifiedUserIdList (..), | ||
| LimitedQualifiedUserIdList (..), | ||
| ScimUserInfo (..), | ||
| ScimUserInfos (..), | ||
| UserSet (..), | ||
battermann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| -- Profiles | ||
| UserProfile (..), | ||
| SelfProfile (..), | ||
|
|
@@ -892,6 +895,53 @@ instance ToSchema BindingNewTeamUser where | |
| <$> bnuTeam .= bindingNewTeamObjectSchema | ||
| <*> bnuCurrency .= maybe_ (optField "currency" genericToSchema) | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| -- SCIM User Info | ||
|
|
||
| data ScimUserInfo = ScimUserInfo | ||
| { suiUserId :: UserId, | ||
| suiCreatedOn :: Maybe UTCTimeMillis | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How long would it take to add "createdby" to the csv file, while you're at it? Seems like a good opportunity to avoid potential follow-up tickets, but I'm not sure.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I respectfully object, because YAGNI. |
||
| } | ||
| deriving stock (Eq, Show, Generic) | ||
| deriving (Arbitrary) via (GenericUniform ScimUserInfo) | ||
| deriving (ToJSON, FromJSON, S.ToSchema) via (Schema ScimUserInfo) | ||
|
|
||
| instance ToSchema ScimUserInfo where | ||
| schema = | ||
| object "ScimUserInfo" $ | ||
| ScimUserInfo | ||
| <$> suiUserId .= field "id" schema | ||
| <*> suiCreatedOn .= maybe_ (optField "created_on" schema) | ||
|
|
||
| newtype ScimUserInfos = ScimUserInfos {scimUserInfos :: [ScimUserInfo]} | ||
| deriving stock (Eq, Show, Generic) | ||
| deriving (Arbitrary) via (GenericUniform ScimUserInfos) | ||
| deriving (ToJSON, FromJSON, S.ToSchema) via (Schema ScimUserInfos) | ||
|
|
||
| instance ToSchema ScimUserInfos where | ||
| schema = | ||
| object "ScimUserInfos" $ | ||
| ScimUserInfos | ||
| <$> scimUserInfos .= field "scim_user_infos" (array schema) | ||
|
|
||
| ------------------------------------------------------------------------------- | ||
| -- UserSet | ||
|
|
||
| -- | Set of user ids, can be used for different purposes (e.g., used on the internal | ||
| -- APIs for listing user's clients) | ||
| newtype UserSet = UserSet | ||
| { usUsrs :: Set UserId | ||
| } | ||
| deriving stock (Eq, Show, Generic) | ||
| deriving newtype (Arbitrary) | ||
| deriving (ToJSON, FromJSON, S.ToSchema) via (Schema UserSet) | ||
|
|
||
| instance ToSchema UserSet where | ||
| schema = | ||
| object "UserSet" $ | ||
| UserSet | ||
| <$> usUsrs .= field "users" (set schema) | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| -- Profile Updates | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.