Fix failed tests job name value on top page

This commit fixes job name value to use 'job_name' value of the first
failed. As the previous patch[1] says, the job name in the url doesn't
always match the job name in the database in the zuul v3 world.

[1] Ic1ba76c853ffd9ebb87683e56c82fea711b6139b

Change-Id: Ida70e2704d9e7a038fe5747bd53c816155435325
This commit is contained in:
Masayuki Igawa 2017-11-17 13:48:17 +09:00
parent 7e51dd3a08
commit f7909853f6
No known key found for this signature in database
GPG Key ID: 290F53EDC899BF89
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@
ng-repeat="(key, value) in home.recentRuns">
<td><span nest-toggle nest-indicator></span></td>
<td><a href nest-toggle>{{key | split:'/' | last:2 | pick:0}}</a></td>
<td><a href nest-toggle>{{ value.fails[0].job_name }}</a></td>
<td>
<a target="_blank" href="{{ key }}">
{{key | split:'/' | last:2 | pick:1}}