Skip to content

Conversation

@battermann
Copy link
Contributor

@battermann battermann commented Oct 9, 2025

https://wearezeta.atlassian.net/browse/WPB-20764

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 Oct 9, 2025
@battermann battermann changed the title WPB-20764 add user groups count property for users WPB-20764 add user group ids to team member search result Oct 9, 2025
@battermann battermann marked this pull request as ready for review October 9, 2025 11:19
@battermann battermann requested review from a team as code owners October 9, 2025 11:19
@battermann battermann requested a review from Copilot October 9, 2025 11:43
Copy link
Contributor

Copilot AI left a 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.

@battermann battermann force-pushed the WPB-20764-add-user-groups-property-for-users branch from 6b08bdc to 0cdddd4 Compare October 9, 2025 13:31
Copy link
Member

@akshaymankar akshaymankar left a comment

Choose a reason for hiding this comment

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

:shipit:

@battermann battermann merged commit ca71f22 into develop Oct 10, 2025
8 checks passed
@battermann battermann deleted the WPB-20764-add-user-groups-property-for-users branch October 10, 2025 08:09
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.

5 participants