- Add support for orgs in the entity search and the notification system
- Fix the titles/names of the different notification types - Fix the styling of the options buttons on the notifications
This commit is contained in:
parent
1ffbc77106
commit
54ee94754e
6 changed files with 55 additions and 13 deletions
|
@ -67,6 +67,17 @@ class QuayNotificationMethod(NotificationMethod):
|
|||
# Just to be safe.
|
||||
return True
|
||||
|
||||
target_users.append(target)
|
||||
elif target_info['kind'] == 'org':
|
||||
target = model.get_organization(target_info['name'])
|
||||
if not target:
|
||||
# Just to be safe.
|
||||
return True
|
||||
|
||||
# Only repositories under the organization can cause notifications to that org.
|
||||
if target_info['name'] != repository.namespace:
|
||||
return False
|
||||
|
||||
target_users.append(target)
|
||||
elif target_info['kind'] == 'team':
|
||||
# Lookup the team.
|
||||
|
|
Reference in a new issue