Add support for targeting notifications to organizations and remove the password_required notification for new orbs
This commit is contained in:
parent
578add3b9e
commit
525ef8d14f
8 changed files with 61 additions and 16 deletions
|
@ -2521,6 +2521,7 @@ def get_logs(namespace, start_time, end_time, performer_name=None,
|
|||
|
||||
def notification_view(notification):
|
||||
return {
|
||||
'organization': notification.target.username if notification.target.organization else None,
|
||||
'kind': notification.kind.name,
|
||||
'created': notification.created,
|
||||
'metadata': json.loads(notification.metadata_json),
|
||||
|
|
Reference in a new issue