Skip to content

Commit 0aad687

Browse files
return missing variables
1 parent 71d98e0 commit 0aad687

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

osf/utils/machines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def notify_submit(self, ev):
260260
""" Notify admins that someone is requesting access
261261
"""
262262
context = self.get_context()
263+
context['contributors_url'] = f'{self.machineable.target.absolute_url}contributors/'
264+
context['project_settings_url'] = f'{self.machineable.target.absolute_url}settings/'
263265

264266
if not self.machineable.request_type == NodeRequestTypes.INSTITUTIONAL_REQUEST.value:
265267
for admin in self.machineable.target.get_users_with_perm(permissions.ADMIN):

website/archiver/utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ def send_archiver_copy_error_mails(src, user, results, url):
6464
NotificationType.Type.DESK_ARCHIVE_JOB_COPY_ERROR.instance.emit(
6565
destination_address=settings.OSF_SUPPORT_EMAIL,
6666
event_context={
67+
'domain': settings.DOMAIN,
68+
'user_fullname': user.fullname,
69+
'user__id': user._id,
70+
'src__id': src._id,
71+
'src_url': src.url,
6772
'src_title': src.title,
73+
'results': results,
74+
'url': url,
75+
'can_change_preferences': False,
6876
}
6977
)
7078
NotificationType.Type.USER_ARCHIVE_JOB_COPY_ERROR.instance.emit(

0 commit comments

Comments
 (0)