mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
Add data to copy into beta partners spreadsheet
Currently we keep track of live services in the ‘beta partners’ spreadsheet: https://docs.google.com/spreadsheets/d/1JYhE5sJaOJUVMPPDenO2eKqElC75Rygxb1_2mpRKy98/edit#gid=503930061 Every time a service goes live we need to enter some data into the spreadsheet about that service. Most of that data is copied from the request to go live ticket. This commit adds a line to the ticket with all the data needed by the spreadsheet. It’s in the same order as in the spreadsheet, and it’s tab-delimted so it should paste right on in there.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from datetime import datetime
|
||||
|
||||
import pytz
|
||||
from flask import (
|
||||
abort,
|
||||
current_app,
|
||||
@@ -222,6 +225,16 @@ def submit_request_to_go_live(service_id):
|
||||
'\nChannel: {}\nStart date: {}\nStart volume: {}'
|
||||
'\nPeak volume: {}'
|
||||
'\nFeatures: {}'
|
||||
'\n'
|
||||
'\n---'
|
||||
'\n'
|
||||
'{service_id}\t'
|
||||
'{organisation}\t'
|
||||
'{service_name}\t'
|
||||
'{user_name}\t'
|
||||
'{user_email}\t'
|
||||
'-\t'
|
||||
'{date}'
|
||||
).format(
|
||||
current_service.name,
|
||||
url_for('main.service_dashboard', service_id=current_service.id, _external=True),
|
||||
@@ -239,7 +252,13 @@ def submit_request_to_go_live(service_id):
|
||||
'one off' if form.method_one_off.data else None,
|
||||
'file upload' if form.method_upload.data else None,
|
||||
'API' if form.method_api.data else None,
|
||||
)), before_each='', after_each='')
|
||||
)), before_each='', after_each=''),
|
||||
service_id=current_service.id,
|
||||
organisation=AgreementInfo.from_current_user().owner,
|
||||
service_name=current_service.name,
|
||||
user_name=current_user.name,
|
||||
user_email=current_user.email_address,
|
||||
date=datetime.now(tz=pytz.timezone('Europe/London')).strftime('%d/%m/%Y'),
|
||||
),
|
||||
ticket_type=zendesk_client.TYPE_QUESTION,
|
||||
user_email=current_user.email_address,
|
||||
|
||||
Reference in New Issue
Block a user