[cvp-web] Bugfix: use '_id' as the primary key of the data rather than the 'Test ID' 35/46935/6
authorgrakiss <grakiss.wanglei@huawei.com>
Thu, 9 Nov 2017 11:01:00 +0000 (11:01 +0000)
committerLeo wang <grakiss.wanglei@huawei.com>
Thu, 9 Nov 2017 11:55:20 +0000 (11:55 +0000)
commitf88b298c17a3dac9e6b2882d3f10f274572fc29d
tree13eeba65fbbb0a6f97e08d3afca6107d7a1157fc
parent135db0c9860db436a2036f2bcb6f45b164f5b848
[cvp-web] Bugfix: use '_id' as the primary key of the data rather than the 'Test ID'

JIRA: DOVETAIL-554

It allows different users to upload the same results now.
So the 'Test ID' is not unique in this situation.
Use '_id' as the primary key which can uniquely identify one data.

Change-Id: I852ee116f36a6a86e9b4350183e39ee00f8b99de
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
cvp/3rd_party/static/testapi-ui/components/results/results.html
cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
cvp/opnfv_testapi/resources/test_handlers.py