summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/components
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
committergrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
commit3617b6958c4c44678d64c05e669b50e427fc45f8 (patch)
tree81691a81384000128056377f2a64d3d3fceaa589 /cvp/3rd_party/static/testapi-ui/components
parent54bc0f28fd9b5ec6675401d6c3322b30e72e7d9c (diff)
[web-cvp]Additional columns in ‘My Results’
JIRA: DOVETAIL-532 1. original filename 2. user editable label Change-Id: I1566cecb3d8ceacc14167bb2fb7fa41508f293be Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components')
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html5
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results/results.html6
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results/resultsController.js4
3 files changed, 7 insertions, 8 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
index 091cab88..f79ac713 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
+++ b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
@@ -27,10 +27,7 @@ Test Filters:<br />
<uib-accordion-group is-open="isOpen" is-disabled="ctrl.cases == 0">
<uib-accordion-heading>
- {{ ctrl.testId }}
- <small>
- (<strong>Total:</strong> {{ ctrl.cases.length }} tests)
- </small>
+ Test ID: {{ ctrl.testId }}
<i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': isOpen, 'glyphicon-chevron-right': !isOpen}"></i>
</uib-accordion-heading>
<ol class="capabilities">
diff --git a/cvp/3rd_party/static/testapi-ui/components/results/results.html b/cvp/3rd_party/static/testapi-ui/components/results/results.html
index 5d6979da..e1d05b2d 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results/results.html
+++ b/cvp/3rd_party/static/testapi-ui/components/results/results.html
@@ -21,6 +21,8 @@
<tr>
<th>Upload Date</th>
<th>Test ID</th>
+ <th>File Name</th>
+ <th>Label</th>
<th>Status</th>
<th>Log</th>
<th class="col-md-2">Operation</th>
@@ -28,10 +30,12 @@
</tr>
</thead>
- <tbody>
+ <tbody style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<tr ng-repeat="(index, result) in ctrl.data.tests">
<td>{{ result.upload_date }}</td>
<td><a ng-click="ctrl.gotoResultDetail(result.id, result._id)">{{ result.id }}</a></td>
+ <td>{{ result.filename || "None"}}</td>
+ <td><div class="popover-wrapper"><a editable-theme="bs3" onbeforesave="ctrl.toggleCheck(result, 'label', $data)" editable-text="result.label"> {{ result.label || "None" }}</a></div></td>
<td>{{ result.status }}</td>
<td><a ng-click="ctrl.downloadLogs(result.id)">logs</a></td>
<td>
diff --git a/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js b/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
index 471cec0d..2ece86fb 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
+++ b/cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
@@ -251,10 +251,8 @@
})
.success(function(data){
ctrl.uploadState = "";
+ data.filename = file.name;
var createTestUrl = testapiApiUrl + "/tests"
- var fd = new FormData();
- fd.append('results',data.results);
- fd.append('id',data.id);
$http.post(createTestUrl, data)
.success(function(data, status){
if (data.code && data.code != 0) {