From cc4cc78d8c46d91248d5303634dc11c3838ba94f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 5 Jul 2021 11:49:22 +0100 Subject: [PATCH] Hide details of go live request ticket from the user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We put some content in the go live ticket which is for our benefit, for example notes about the organisation. It’s hard for us to be able to say what we want here if we know that the person making a go live request is going to see those notes. This commit changes go live requests so that the initial content of the ticket is hidden from the person raising it (in Zendesk it will appear as an ‘internal note’, rather than a ‘public reply’). --- Depends on: - [ ] https://github.com/alphagov/notifications-utils/pull/877/files --- app/main/views/service_settings.py | 1 + tests/app/main/views/test_service_settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index cfd5568c7..43c6d2c2e 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -243,6 +243,7 @@ def submit_request_to_go_live(service_id): user_email=current_user.email_address, user_name=current_user.name, tags=current_service.request_to_go_live_tags, + requester_sees_message_content=False, ) current_service.update(go_live_user=current_user.id) diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index 2480e252a..886c0f301 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -1737,6 +1737,7 @@ def test_should_redirect_after_request_to_go_live( 'notify_go_live_incomplete_mou', 'notify_go_live_incomplete_team_member', ], + requester_sees_message_content=False, ) assert mock_post.call_args[1]['message'] == ( 'Service: service one\n'