[UI] Ignore malformed results
[validation.git] / ui / src / main / webapp / app / BluvalUI / CommittedSubmissions / CommittedSubmissionsTemplate.html
1 <!--
2 Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 -->
16 <div id="page-content" class="content" style="padding: 25px;">
17
18     <style>
19 body {
20     font-size: 13px;
21 }
22
23 .box {
24     overflow-x: scroll;
25     overflow-y: scroll;
26 }
27 </style>
28
29     <div class="box">
30         <h1 class="heading-page">Committed Submissions</h1>
31         <div>
32             <button
33                 style="margin-left: 25px; margin-top: 4px; float: right; background-color: #337ab7;"
34                 type="submit" class="btn-alt btn-small"
35                 ng-click="refreshCommittedSubmissions()">Refresh</button>
36         </div>
37         <table ng-table="tableParams" class="table" show-filter="true">
38             <tr ng-repeat="submission in $data">
39                 <td title="'Id'" filter="{ submissionId: 'text'}"
40                     sortable="'submissionId'">{{
41                     submission.submissionId }}</td>
42                 <td title="'Timeslot'" filter="{ timeslot: 'text'}"
43                     sortable="'timeslot'">Lab: {{
44                     submission.timeslot.labInfo.lab }} Start date and
45                     time: {{ submission.timeslot.startDateTime }} <!-- duration(in sec) :
46                                 {{submission.timeslot.duration}}-->
47                 </td>
48                 <td title="'Blueprint Name'">{{
49                     submission.validationDbTestResult.blueprintInstance.blueprint.blueprintName
50                     }}</td>
51                 <td title="'Version'">{{
52                     submission.validationDbTestResult.blueprintInstance.version
53                     }}</td>
54                 <td title="'Layer(s)'">{{
55                     getLayer(submission.validationDbTestResult) }}</td>
56                 <td title="'Optional Test Cases'">{{
57                     submission.validationDbTestResult.optional}}</td>
58                 <td title="'Status'" filter="{ status: 'text'}"
59                     sortable="'status'">{{
60                     submission.submissionStatus }}</td>
61                 <td title="'Nexus URL result'"><a
62                     href="{{getResultUrl(submission)}}">{{getResultUrl(submission)}}</a></td>
63                 <td title="'Result'">
64                     <button
65                         style="margin-left: 25px; margin-top: 4px; float: right; background-color: #337ab7;"
66                         type="submit" class="btn-alt btn-small"
67                         ng-click="getValidationResults(submission);">{{
68                         mapResult(submission.validationDbTestResult)}}</button>
69                 </td>
70             </tr>
71         </table>
72     </div>
73
74 </div>