示例#1
0
def feature_request_add():
    data = request.data
    data_dict = json.loads(data)
    feature_requests_dict = {}
    feature_request = FeatureRequest(test=test_mode)
    feature_request.title = data_dict['title']
    feature_request.description = data_dict['description']
    feature_request.client_name = data_dict['client_name']
    feature_request.client_priority = data_dict['client_priority']
    feature_request.target_date = data_dict['target_date']
    feature_request.product_area = data_dict['product_area']
    feature_request.agent_name = data_dict['agent_name']
    feature_request.save()
    return jsonify({
        'status': 'success',
        'message': 'Feature request added',
        'feature_request': feature_request.to_dict()
    })
示例#2
0
def feature_request_add():
    data = request.data
    data_dict = json.loads(data)
    feature_requests_dict = {}
    feature_request = FeatureRequest(test=test_mode)
    feature_request.title = data_dict['title']
    feature_request.description = data_dict['description']
    feature_request.client_name = data_dict['client_name']
    feature_request.client_priority = data_dict['client_priority']
    feature_request.target_date = data_dict['target_date']
    feature_request.product_area = data_dict['product_area']
    feature_request.agent_name = data_dict['agent_name']
    feature_request.save()
    return jsonify({
        'status': 'success',
        'message': 'Feature request added',
        'feature_request': feature_request.to_dict()
    })
示例#3
0
def _insert_feature_requests(client):
    client.drop_database('featkeeper')
    feature_request = FeatureRequest()
    FeatureRequestModel = feature_request.FeatureRequestModel
    feature_request = FeatureRequestModel({
        'title': 'Support custom themes',
        'description': 'Client wants to be able to choose different colors, fonts, and layouts for each module',
        'client_name': 'A',
        'client_priority': 1,
        'target_date': '2016-08-21',
        'product_area': 'Policies',
        'agent_name': 'Eleuthere',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'CSV export',
        'description': 'Client wants to be able to export their monthly payments to CSV file',
        'client_name': 'A',
        'client_priority': 2,
        'target_date': '2016-06-01',
        'product_area': 'Billing',
        'agent_name': 'Jean Claude',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Batch excel import',
        'description': 'Client wants to be able to batch import Claims from an xlsx file',
        'client_name': 'A',
        'client_priority': 3,
        'target_date': '2016-08-25',
        'product_area': 'Claims',
        'agent_name': 'Jean Claude',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Add sales channel field',
        'description': 'Client wants to be able to see the sales channel associated',
        'client_name': 'B',
        'client_priority': 1,
        'target_date': '2016-11-21',
        'product_area': 'Policies',
        'agent_name': 'Eleuthere',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Implement claim workflow',
        'description': 'Client wants to be able to create new workflows and track them for each claim',
        'client_name': 'B',
        'client_priority': 2,
        'target_date': '2016-03-21',
        'product_area': 'Claims',
        'agent_name': 'Amanda',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Sales by product area mobile',
        'description': 'Client wants to be able to see sales by product area using mobile devices',
        'client_name': 'B',
        'client_priority': 3,
        'target_date': '2016-06-12',
        'product_area': 'Reports',
        'agent_name': 'Eleuthere',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Send e-mail on new claim',
        'description': 'Client wants to be able to send e-mail to client and agent when new claims get created',
        'client_name': 'C',
        'client_priority': 1,
        'target_date': '2016-12-10',
        'product_area': 'Claims',
        'agent_name': 'Jean Claude',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Send telegram message on new policy',
        'description': 'Client wants to be able to send a telegram message to client when new policies gets created',
        'client_name': 'C',
        'client_priority': 2,
        'target_date': '2016-06-25',
        'product_area': 'Policies',
        'agent_name': 'Eleuthere',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Add customer satisfaction survey',
        'description': 'Client wants to be able to send out a survey to evaluate customer satisfaction after issuing a new claim',
        'client_name': 'C',
        'client_priority': 3,
        'target_date': '2016-05-16',
        'product_area': 'Claims',
        'agent_name': 'Amanda',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()
    feature_request = FeatureRequestModel({
        'title': 'Claims by status',
        'description': 'Client wants to be able to see a report showing claims by status where he can filter',
        'client_name': 'C',
        'client_priority': 4,
        'target_date': '2016-07-25',
        'product_area': 'Reports',
        'agent_name': 'Amanda',
        'ticket_url': 'http://localhost:5000/' + shortuuid.ShortUUID().random(length=6)
    })
    feature_request.save()