Show More
@@ -3968,15 +3968,21 b' class RepoReviewRule(Base, BaseModel):' | |||
|
3968 | 3968 | users[rule_user.user.username] = { |
|
3969 | 3969 | 'user': rule_user.user, |
|
3970 | 3970 | 'source': 'user', |
|
3971 | 'source_data': {}, | |
|
3971 | 3972 | 'data': rule_user.rule_data() |
|
3972 | 3973 | } |
|
3973 | 3974 | |
|
3974 | 3975 | for rule_user_group in self.rule_user_groups: |
|
3976 | source_data = { | |
|
3977 | 'name': rule_user_group.users_group.users_group_name, | |
|
3978 | 'members': len(rule_user_group.users_group.members) | |
|
3979 | } | |
|
3975 | 3980 | for member in rule_user_group.users_group.members: |
|
3976 | 3981 | if member.user.active: |
|
3977 | 3982 | users[member.user.username] = { |
|
3978 | 3983 | 'user': member.user, |
|
3979 | 3984 | 'source': 'user_group', |
|
3985 | 'source_data': source_data, | |
|
3980 | 3986 | 'data': rule_user_group.rule_data() |
|
3981 | 3987 | } |
|
3982 | 3988 |
General Comments 0
You need to be logged in to leave comments.
Login now