Skip to content

[WPB-23644] add app data to get /list-users - #5070

Merged
fisx merged 24 commits into
developfrom
WPB-23644-add-app-data-to-get-list-users
Mar 16, 2026
Merged

[WPB-23644] add app data to get /list-users#5070
fisx merged 24 commits into
developfrom
WPB-23644-add-app-data-to-get-list-users

Conversation

@fisx

@fisx fisx commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Feb 27, 2026
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from 6f3c91e to b5afbd9 Compare March 3, 2026 16:07
@fisx
fisx changed the base branch from develop to WPB-23644-fix-subsystems-dep-graph March 3, 2026 16:08
@fisx
fisx force-pushed the WPB-23644-fix-subsystems-dep-graph branch from e881280 to de3e000 Compare March 4, 2026 06:50
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from b5afbd9 to 4de6c1f Compare March 4, 2026 21:18
@fisx
fisx force-pushed the WPB-23644-fix-subsystems-dep-graph branch from f560ec9 to 31b6e3a Compare March 9, 2026 09:36
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch 4 times, most recently from 05a1630 to 09f27e8 Compare March 10, 2026 14:49
@blackheaven
blackheaven force-pushed the WPB-23644-add-app-data-to-get-list-users branch from 09f27e8 to c0ccf88 Compare March 10, 2026 14:56
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch 2 times, most recently from 8187777 to 7eeb24a Compare March 10, 2026 16:26
@fisx
fisx force-pushed the WPB-23644-fix-subsystems-dep-graph branch from f02ae2f to eea2326 Compare March 11, 2026 08:41
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch 2 times, most recently from 1646f38 to 8df2159 Compare March 11, 2026 11:10
<*> listUsersByIdFailed .= maybe_ (optField "failed" $ nonEmptyArray schema)

--------------------------------------------------------------------------------
-- Apps (can't easily go into its own module because cyclical deps)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hasn't changed in the process of moving here from Wire.API.App, promise! :)

@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from f4090b5 to c8bd8be Compare March 12, 2026 10:58
Comment thread libs/wire-api/src/Wire/API/User/Profile.hs
Comment thread libs/wire-subsystems/src/Wire/UserSubsystem.hs Outdated
Comment thread services/brig/src/Brig/API/Public.hs Outdated
:<|> Named @"get-apps" getApps
:<|> Named @"put-app" putApp
:<|> Named @"refresh-app-cookie" refreshAppCookie
:<|> Named @"refresh-app-cookie" refreshAppCookie -- TODO: does this invalidate the old cookies?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:<|> Named @"refresh-app-cookie" refreshAppCookie -- TODO: does this invalidate the old cookies?
:<|> Named @"refresh-app-cookie" refreshAppCookie -- FUTUREWORK: does this invalidate the old cookies?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fisx
fisx requested a review from blackheaven March 12, 2026 13:24
@fisx
fisx force-pushed the WPB-23644-fix-subsystems-dep-graph branch from fda21d2 to b6654a3 Compare March 12, 2026 13:25
Base automatically changed from WPB-23644-fix-subsystems-dep-graph to develop March 12, 2026 14:18
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from 47fe429 to 15d88af Compare March 12, 2026 14:20
@fisx
fisx marked this pull request as ready for review March 12, 2026 14:45
@fisx
fisx requested review from a team as code owners March 12, 2026 14:45
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from 61bab58 to 0be8b3a Compare March 12, 2026 20:44
fisx and others added 22 commits March 14, 2026 14:57
People have added fields manually in the past, this will show
irrelevant syntactic differences when re-creating the affected
schemas.  Semantics does not change in this commit.
(except for recursion, so it's not working yet, but it's clear from
the code how it should work.)
(Application logic in UserSubsystem is still responsible for filling
the app field after the user profile has been constructed.  But this
way it's more explicit.)
Co-authored-by: Gautier DI FOLCO <gautier.difolco@wire.com>
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch 2 times, most recently from 110a3ec to fe08422 Compare March 14, 2026 14:31
Also don't return deleted profiles from "get-apps".
@fisx
fisx force-pushed the WPB-23644-add-app-data-to-get-list-users branch from fe08422 to f692b24 Compare March 16, 2026 08:54
@fisx
fisx merged commit f1b7f17 into develop Mar 16, 2026
10 checks passed
@fisx
fisx deleted the WPB-23644-add-app-data-to-get-list-users branch March 16, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants