Merge pull request #4097 from alphagov/more-zendesk-user-info

Add link to user page to go live tickets
This commit is contained in:
Katie Smith
2021-12-10 12:48:27 +00:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -30,4 +30,5 @@ Other live services for that user: {{ user.live_services|format_yes_no }}
Service reply-to address: {{ service.default_email_reply_to_address or "not set" }}
---
Request sent by {{ current_user.email_address }}
Request sent by {{ user.email_address }}
Requesters user page: {{ url_for('main.user_information', user_id=user.id, _external=True) }}

View File

@@ -1665,9 +1665,11 @@ def test_should_redirect_after_request_to_go_live(
'\n'
'---\n'
'Request sent by test@user.gov.uk\n'
'Requesters user page: http://localhost/users/{user_id}\n'
).format(
service_id=SERVICE_ONE_ID,
formatted_displayed_volumes=formatted_displayed_volumes,
user_id=active_user_with_permissions['id'],
)
mock_create_ticket.assert_called_once_with(
ANY,
@@ -1750,9 +1752,11 @@ def test_request_to_go_live_displays_go_live_notes_in_zendesk_ticket(
'\n'
'---\n'
'Request sent by test@user.gov.uk\n'
'Requesters user page: http://localhost/users/{user_id}\n'
).format(
service_id=SERVICE_ONE_ID,
go_live_note=go_live_note
go_live_note=go_live_note,
user_id=active_user_with_permissions['id'],
)
mock_create_ticket.assert_called_once_with(