Skip to content

[AND-465] Add team based roles support for users. #5737

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

VelikovPetar
Copy link
Contributor

@VelikovPetar VelikovPetar commented Apr 18, 2025

🎯 Goal

Introduces a way for integrators to retrieve the team-based roles of a user in a multi-tenant setup.

🛠 Implementation details

  • Add teamsRole field to the User model, holding a Map<String, String>, which holds the roles the user has per team. Ex: { "teams_role": { "red": "user", "blue": "admin" } }

🧪 Testing

Note: I will create a separate PR which will provide options to test the behaviour

@VelikovPetar VelikovPetar changed the title [AND-465] Add team based roles support. [AND-465] Add team based roles support for users. Apr 18, 2025
Copy link
Contributor

DB Entities have been updated. Do we need to upgrade DB Version?
Modified Entities :

stream-chat-android-offline/src/main/java/io/getstream/chat/android/offline/repository/domain/user/internal/UserEntity.kt

Copy link
Contributor

github-actions bot commented Apr 18, 2025

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 3.16 MB 3.16 MB 0.00 MB 🟢
stream-chat-android-offline 3.38 MB 3.38 MB 0.00 MB 🟢
stream-chat-android-ui-components 7.89 MB 7.89 MB 0.00 MB 🟢
stream-chat-android-compose 9.91 MB 9.91 MB 0.00 MB 🟢

@VelikovPetar VelikovPetar marked this pull request as ready for review April 21, 2025 08:30
@VelikovPetar VelikovPetar requested a review from a team as a code owner April 21, 2025 08:30
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
63.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant