This is intended to be a temporary solution to allow product

owner to see history records until proper design is done for
viewing histiry.
This commit is contained in:
Adam Shimali
2016-04-21 17:34:01 +01:00
parent b8774a8ce9
commit 786ce0e071
3 changed files with 98 additions and 0 deletions

View File

@@ -26,6 +26,18 @@ from app import (
from app.utils import user_has_permissions
# This is a placeholder view method to be replaced
# when product team makes decision about how/what/when
# to view history
@main.route("/services/<service_id>/history")
@login_required
def temp_service_history(service_id):
data = service_api_client.get_service_history(service_id)['data']
return render_template('views/temp-history.html',
services=data['service_history'],
api_keys=data['api_key_history'])
@main.route("/services/<service_id>/dashboard")
@login_required
@user_has_permissions('view_activity', admin_override=True)