-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1136 from 18F/nmb/analytics
Utilization Analytics MVP
- Loading branch information
Showing
10 changed files
with
317 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
-i https://pypi.python.org/simple | ||
beautifulsoup4==4.9.1 | ||
bleach==3.1.5 | ||
certifi==2020.4.5.2 | ||
certifi==2020.6.20 | ||
cfenv==0.5.3 | ||
cg-django-uaa==2.0.0 | ||
chardet==3.0.4 | ||
dj-database-url==0.5.0 | ||
django-webtest==1.9.7 | ||
django==2.2.13 | ||
django==2.2.14 | ||
djangorestframework-csv==2.1.0 | ||
djangorestframework==3.11.0 | ||
furl==2.1.0 | ||
gevent==20.6.0 | ||
gevent==20.6.2 | ||
greenlet==0.4.16; platform_python_implementation == 'CPython' | ||
gunicorn==20.0.4 | ||
idna==2.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
importlib-metadata==1.6.1; python_version < '3.8' | ||
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
markdown==3.2.2 | ||
newrelic==5.14.0.142 | ||
newrelic==5.14.1.144 | ||
orderedmultidict==1.0.1 | ||
packaging==20.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
plotly==4.9.0 | ||
psycopg2-binary==2.8.5 | ||
pyjwt==1.7.1 | ||
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
pytz==2020.1 | ||
requests==2.23.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
requests==2.24.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
retrying==1.3.3 | ||
six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
soupsieve==2.0.1; python_version >= '3.5' | ||
sqlparse==0.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
unicodecsv==0.14.1 | ||
urllib3==1.25.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' | ||
urllib3==1.25.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4' | ||
waitress==1.4.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' | ||
webencodings==0.5.1 | ||
webob==1.8.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' | ||
webtest==2.0.35 | ||
whitenoise==5.1.0 | ||
zipp==3.1.0; python_version >= '3.6' | ||
zope.event==4.4 | ||
zope.interface==5.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tock/tock/templates/utilization/utilization_analytics.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% block navigation %} | ||
{% include "_navigation.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<script src="{% static 'js/plotly-1.54.7.min.js' %}"></script> | ||
|
||
<h2>Analytics</h2> | ||
|
||
<h3>Overall Utilization</h3> | ||
{{plot|safe}} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from django.urls import path | ||
|
||
from .views import GroupUtilizationView | ||
from .views import GroupUtilizationView, UtilizationAnalyticsView | ||
|
||
app_name = 'utilization' | ||
urlpatterns = [ | ||
path('', GroupUtilizationView.as_view(), name='GroupUtilizationView') | ||
] | ||
path('', GroupUtilizationView.as_view(), name='GroupUtilizationView'), | ||
path('analytics', UtilizationAnalyticsView.as_view(), name='UtilizationAnalyticsView') | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters