Skip to content

chore: update user role filtering in user.py and update community submodule commit hash - #6583

Merged
wxg0103 merged 1 commit into
v2from
pr@v2@fix_user
Aug 4, 2026
Merged

chore: update user role filtering in user.py and update community submodule commit hash#6583
wxg0103 merged 1 commit into
v2from
pr@v2@fix_user

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

chore: update user role filtering in user.py and update community submodule commit hash

Copilot AI lite review requested due to automatic review settings August 4, 2026 10:11
@shaohuzhang1

Copy link
Copy Markdown
Contributor Author

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@wxg0103
wxg0103 merged commit 4040de4 into v2 Aug 4, 2026
5 of 7 checks passed
@wxg0103
wxg0103 deleted the pr@v2@fix_user branch August 4, 2026 10:11

Copilot AI left a comment

Copy link
Copy Markdown

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 adjusts how workspace-scoped user lists are derived in the UserManageSerializer.get_user_list fallback path (when the workspace-user-role mapping model is unavailable), intending to filter users by role rather than returning all users.

Changes:

  • Update the fallback query for get_user_list to filter users by a specific role (instead of returning all user IDs).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

)
else:
user_ids = User.objects.values_list('id', flat=True)
user_ids = User.objects.filter(role__in=RoleConstants.USER.name).values_list('id', flat=True)
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.

3 participants