summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2017-08-09 14:50:39 -0500
committerAndy Doan <andy.doan@linaro.org>2017-08-24 11:36:33 -0500
commit98716c246603f270ae0a4b970e92e32a9edc8e3f (patch)
tree55024841a7e29a98712efd9a4dcb503bdbbb2e6f
parent5dd50f171aa7f61070bf137dc17c511abcd2eb0c (diff)
downloadpatchwork-tools-98716c246603f270ae0a4b970e92e32a9edc8e3f.tar.gz
linaro-metrics: Update to patchwork 2.0
This moves us to use the 2.0 patchwork release. Change-Id: I7a8b17e1aefef3c0c347fff27459d66fec958af8
-rw-r--r--linaro_metrics/templates/linaro_metrics/index.html2
-rw-r--r--linaro_metrics/views.py3
-rwxr-xr-xunit-test.sh2
3 files changed, 4 insertions, 3 deletions
diff --git a/linaro_metrics/templates/linaro_metrics/index.html b/linaro_metrics/templates/linaro_metrics/index.html
index a61ae3c..deb9696 100644
--- a/linaro_metrics/templates/linaro_metrics/index.html
+++ b/linaro_metrics/templates/linaro_metrics/index.html
@@ -163,7 +163,7 @@ questions.<br/><br/>
<div id="projects" style="display:None">
<ul>
{% for p in projects %}
- <li><a href="{% url 'patchwork.views.patch.patches' project_id=p.linkname %}">{{p.name}}</a></li>
+ <li><a href="{% url 'patchwork.views.patch.patch_list' project_id=p.linkname %}">{{p.name}}</a></li>
{% endfor %}
</ul>
</div>
diff --git a/linaro_metrics/views.py b/linaro_metrics/views.py
index f1da40d..78f5949 100644
--- a/linaro_metrics/views.py
+++ b/linaro_metrics/views.py
@@ -184,7 +184,8 @@ def project_view(request, project_id):
view_args = {'project_id': project.linkname}
context = generic_list(
- request, project, 'patchwork.views.patch.patches', view_args=view_args)
+ request, project, 'patchwork.views.patch.patch_list',
+ view_args=view_args)
context.update({
'metrics': TeamCredit.get_month_metrics(patch__project=project)
})
diff --git a/unit-test.sh b/unit-test.sh
index 90072d1..ed82fcb 100755
--- a/unit-test.sh
+++ b/unit-test.sh
@@ -21,7 +21,7 @@ fi
if [ -z $PYTHONPATH ] ; then
git clone https://github.com/getpatchwork/patchwork.git $VENV_DIR/patchwork
cd $VENV_DIR/patchwork
- git checkout -b production c1d8a0d6eabad25525d1b6925e81b80030773869
+ git checkout -b production v2.0.0
cd $HERE
export PYTHONPATH=$VENV_DIR/patchwork
fi