-
Notifications
You must be signed in to change notification settings - Fork 334
WPB-20764 add user group ids to team member search result #4809
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-20764 add user group ids to team member search result #4809
Conversation
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.
Pull Request Overview
This PR adds user group IDs to team member search results, enabling clients to determine which user groups each team member belongs to when browsing team contacts.
- Add user group IDs to the TeamContact data structure and search response
- Implement database and in-memory retrieval of user group memberships for team members
- Update test fixtures and add integration test to verify the functionality
Reviewed Changes
Copilot reviewed 45 out of 47 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/wire-api/src/Wire/API/User/Search.hs | Add user_groups field to TeamContact API |
| libs/wire-subsystems/src/Wire/UserSearch/Types.hs | Update userDocToTeamContact to accept user groups parameter |
| libs/wire-subsystems/src/Wire/UserSubsystem/Interpreter.hs | Fetch user group IDs and pass to contact conversion |
| libs/wire-subsystems/src/Wire/UserGroupStore.hs | Add GetUserGroupIds operation to store interface |
| libs/wire-subsystems/src/Wire/UserGroupStore/Postgres.hs | Implement PostgreSQL query for user group membership |
| libs/wire-subsystems/test/unit/Wire/MockInterpreters/UserGroupStore.hs | Add in-memory implementation for tests |
| libs/wire-subsystems/test/unit/Wire/MiniBackend.hs | Wire up user group store in test backend |
| integration/test/Test/Search.hs | Add integration test verifying user groups in search results |
| changelog.d/2-features/WPB-20764 | Add changelog entry |
| Multiple golden test files | Update test fixtures with empty user_groups array |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
libs/wire-subsystems/test/unit/Wire/MockInterpreters/UserGroupStore.hs
Outdated
Show resolved
Hide resolved
6b08bdc to
0cdddd4
Compare
akshaymankar
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.
![]()
https://wearezeta.atlassian.net/browse/WPB-20764
Checklist
changelog.d