From 3617b6958c4c44678d64c05e669b50e427fc45f8 Mon Sep 17 00:00:00 2001 From: grakiss Date: Thu, 19 Oct 2017 23:50:18 -0400 Subject: [web-cvp]Additional columns in ‘My Results’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JIRA: DOVETAIL-532 1. original filename 2. user editable label Change-Id: I1566cecb3d8ceacc14167bb2fb7fa41508f293be Signed-off-by: grakiss --- cvp/3rd_party/static/testapi-ui/components/results/results.html | 6 +++++- .../static/testapi-ui/components/results/resultsController.js | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cvp/3rd_party/static/testapi-ui/components/results') 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 @@ Upload Date Test ID + File Name + Label Status Log Operation @@ -28,10 +30,12 @@ - + {{ result.upload_date }} {{ result.id }} + {{ result.filename || "None"}} + {{ result.status }} logs 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) { -- cgit 1.2.3-korg