##// END OF EJS Templates
reviewers: store additional review data....
marcink -
r1771:c6fe7e49 default
parent child Browse files
Show More
@@ -3968,15 +3968,21 b' class RepoReviewRule(Base, BaseModel):'
3968 users[rule_user.user.username] = {
3968 users[rule_user.user.username] = {
3969 'user': rule_user.user,
3969 'user': rule_user.user,
3970 'source': 'user',
3970 'source': 'user',
3971 'source_data': {},
3971 'data': rule_user.rule_data()
3972 'data': rule_user.rule_data()
3972 }
3973 }
3973
3974
3974 for rule_user_group in self.rule_user_groups:
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 for member in rule_user_group.users_group.members:
3980 for member in rule_user_group.users_group.members:
3976 if member.user.active:
3981 if member.user.active:
3977 users[member.user.username] = {
3982 users[member.user.username] = {
3978 'user': member.user,
3983 'user': member.user,
3979 'source': 'user_group',
3984 'source': 'user_group',
3985 'source_data': source_data,
3980 'data': rule_user_group.rule_data()
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