2 * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 var app = angular.module('CommittedSubmissions');
21 'committedSubmissionsSvc',
24 svc.getLayer = function(validationDbTestResult) {
25 if (!validationDbTestResult) {
28 if (validationDbTestResult.allLayers) {
33 validationDbTestResult.wrobotDbTestResults,
35 layers.push(result.layer);
39 svc.getResultUrl = function(submission) {
40 if (submission.submissionStatus !== "Completed") {
43 if (!submission.validationDbTestResult) {
46 if (!submission.validationDbTestResult.wrobotDbTestResults) {
49 if (submission.validationDbTestResult.wrobotDbTestResults.length === 0) {
52 if (submission.validationDbTestResult.dateStorage) {
53 return "https://nexus.akraino.org/content/sites/logs/"
54 + submission.timeslot.labInfo.silo
56 + submission.validationDbTestResult.blueprintInstance.blueprint.blueprintName
58 + submission.validationDbTestResult.blueprintInstance.version
60 + submission.validationDbTestResult.timestamp
65 svc.mapResult = function(validationDbTestResult) {
66 if (validationDbTestResult
67 && validationDbTestResult.dateStorage) {
68 if (validationDbTestResult.result === true) {