Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f3cf380
Bots Summary UI changes, added icons for status in audit trail page, …
divakarkonakalla Nov 24, 2016
dcfb1d9
QA Bugs fixed and enhancements
srikanthv02 Nov 24, 2016
0b5330f
Added saved time as NA for executions which are failed.
divakarkonakalla Nov 24, 2016
597b997
Changed delete button color in design
srikanthv02 Nov 24, 2016
79f29ca
Merge remote-tracking branch 'upstream/dev' into devSrikanth
srikanthv02 Nov 24, 2016
7f4407e
UI fixes in New Task Page.
divakarkonakalla Nov 24, 2016
0c5339e
Merge remote-tracking branch 'upstream/dev' into topic-service-deliver
divakarkonakalla Nov 24, 2016
ec0a81b
After copy of blueprint
srikanthv02 Nov 25, 2016
2ba4745
Merge pull request #974 from srikanthv02/devSrikanth
udeshrl Nov 25, 2016
a5051b3
Merge remote-tracking branch 'upstream/dev' into topic-service-deliver
divakarkonakalla Nov 25, 2016
cd54f06
CAT-2528 and CAT-2529 Fixed
Durgesh1988 Nov 25, 2016
640c755
Merge pull request #976 from Durgesh1988/dev
liteverge-bot Nov 25, 2016
933d29e
Library UI changes.
divakarkonakalla Nov 25, 2016
1dbc8af
Resolved Merge conflicts.
divakarkonakalla Nov 25, 2016
b3da8f4
Bots summary selecteion related UI changes.
divakarkonakalla Nov 25, 2016
0acc6e0
removed unused code
divakarkonakalla Nov 25, 2016
ab96ee7
Merge pull request #975 from divakarkonakalla/topic-service-deliver
udeshrl Nov 25, 2016
bc01d5c
Task Scheduler Implementation
Durgesh1988 Nov 25, 2016
9522988
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 25, 2016
d693dd0
Merge pull request #973 from RLOpenCatalyst/topic-telemetry
liteverge-bot Nov 25, 2016
88e8468
Task Scheduler Implementation
Durgesh1988 Nov 25, 2016
b4f93cd
Task Scheduler Implementation
Durgesh1988 Nov 25, 2016
a446bd5
Resolved JShint errors.
divakarkonakalla Nov 25, 2016
888f073
Task Scheduler Implementation
Durgesh1988 Nov 25, 2016
1b4022f
resolved jshint error
divakarkonakalla Nov 25, 2016
a0259ec
Merge pull request #979 from Durgesh1988/dev
liteverge-bot Nov 25, 2016
02e521f
Merge pull request #980 from divakarkonakalla/topic-service-deliver
udeshrl Nov 28, 2016
ce50617
sensu client install for chef import
udeshrl Nov 28, 2016
536d4af
Merge remote-tracking branch 'upstream/dev' into Feature-CAT-2417
udeshrl Nov 28, 2016
023de8f
provider import changes and bug fixes
udeshrl Nov 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/cat3/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</span>
</div>
</div>
<div id="breadcrumb-nav" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
<div id="breadcrumb-nav" class="col-lg-10 col-md-10 col-sm-10 col-xs-10 no-padding">
<ul>
<li ng-cloak ng-repeat="item in breadcrumbData">{{item}} {{$last ? "" : " &raquo; "}}</li>
</ul>
Expand Down
14 changes: 0 additions & 14 deletions client/cat3/src/factory/workzoneServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,20 +542,6 @@
getBotCategoryList:function () {
var url ='/config-data/category-type';
return $http.get(fullUrl(url),Auth.getHeaderObject());
},
deleteBotTask: function (taskId) {
return $http({
method: "delete",
url: fullUrl('/tasks/serviceDelivery/' + taskId),
async: false
});
},
deleteBotBP: function (blueprintId) {
return $http({
method: "delete",
url: fullUrl('/blueprints/serviceDelivery/' + blueprintId),
async: false
});
}
};
return serviceInterface;
Expand Down
4 changes: 2 additions & 2 deletions client/cat3/src/partials/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ $imagePath : "../../../../../../cat3/images";
}

#breadcrumb-nav {
padding-top: 6px;
padding-left: 60px;
padding-top: 5px;
padding-left: 8px;
}

#breadcrumb-block {
Expand Down
8 changes: 4 additions & 4 deletions client/cat3/src/partials/sections/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ $imagePath : "/cat3/images";

.bp-version-dropdown-wrapper {
height: 40px;
margin: 4px 0 0 19px;
margin: 4px 0 0 36px;
}

.bp-version-dropdown-wrapper-docker {
height: 31px;
margin: -3px 0 0 19px;
margin: -3px 0 0 36px;
}

.btnicons {
Expand Down Expand Up @@ -392,11 +392,11 @@ $imagePath : "/cat3/images";
}

.blueprint-buttons {
margin: 0 0 0 32px;
margin: 0 0 0 45px;
}

.blueprint-buttons-docker {
margin: 5px 0 0 32px;
margin: 5px 0 0 45px;
}

.bp-version-dropdown {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
capaCtr.capaGridOptions.columnDefs.push({
name: keyChild,
field: 'capacity.AWS.services.' + keyChild
})
});
angular.forEach(result.splitUpCapacities[viewType], function (valBar) {
var chVal = '';
if (valBar.capacity.AWS.services[keyChild]) {
Expand Down
120 changes: 54 additions & 66 deletions client/cat3/src/partials/sections/dashboard/bots/bots.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,98 +21,86 @@
}

#botLibraryPage {
.summary-container {
width: 100%;
margin: 15px 0 0 0px;
.page-name {
font-size: 18px;
margin: 5px 0 5px 10px;
}

.panel-heading {
font-weight: bold;
.borderTop {
border-top: 1px dashed #ddd;
}

.col-md-4ths {
width: 25%;
float: left;
.btn-xs {
padding: 1px 5px;
font-size: 12px;
}

.col-md-4ths {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
color: #fff;
.refresh-btn {
margin: 2px 10px 0 0;
}

.small-box {
border-radius: 2px;
position: relative;
display: block;
margin-bottom: 15px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
.summary-container {
width: 100%;
}

.bg-aqua {
background-color: #00c0ef !important;
.selected {
border: 2px solid #000;
height: 94px !important;
margin-top: 13px !important;
}

.small-box .icon {
-webkit-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
transition: all 0.3s linear;
position: absolute;
top: 10px;
right: 10px;
z-index: 0;
font-size: 90px;
color: rgba(0, 0, 0, 0.15);
.info-box {
display: block;
min-height: 90px;
background: #ecf0f5;
width: 100%;
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
margin: 15px 0;
}

.small-box h3 {
font-size: 38px;
font-weight: bold;
margin: 0 0 10px 0;
white-space: nowrap;
padding: 0;
text-align: left;
.info-box-content {
padding: 5px 10px;
margin-left: 90px;
}

.info-box-text {
text-transform: uppercase;
}

.small-box p {
.info-box-text {
display: block;
font-size: 13px;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.small-box > .inner {
padding: 10px;
.info-box-number {
display: block;
font-weight: bold;
font-size: 20px;
}

.small-box > .small-box-footer {
position: relative;
text-align: center;
padding: 3px 0;
color: #fff;
color: rgba(255, 255, 255, 0.8);
.info-box-icon {
display: block;
z-index: 10;
background: rgba(0, 0, 0, 0.1);
text-decoration: none;
cursor: pointer;
height: 27px;
float: left;
height: 90px;
width: 90px;
text-align: center;
font-size: 45px;
line-height: 90px;
background: rgba(0,0,0,0.2);
}

.bg-aqua {
background-color: #00c0ef !important;
}

.small-box .icon {
-webkit-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
transition: all 0.3s linear;
position: absolute;
top: 10px;
right: 10px;
z-index: 0;
font-size: 90px;
color: rgba(0, 0, 0, 0.15);
.bg-green {
background-color: #00a65a !important;
}

.small-box .icon {
color: rgba(0, 0, 0, 0.15) !important;
.bg-red {
background-color: #dd4b39 !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
(function (angular) {
"use strict";
angular.module('dashboard.bots')
.controller('audittrailCtrl',['$scope', '$rootScope', '$http', '$state', 'genericServices', 'confirmbox', 'workzoneServices', 'toastr', 'workzoneUIUtils', '$modal',
function ($scope, $rootScope, $http, $state, genSevs, confirmbox, workzoneServices, toastr, workzoneUIUtils, $modal) {
.controller('audittrailCtrl',['$scope', '$rootScope', '$state', 'genericServices', 'confirmbox', 'workzoneServices', 'toastr', 'workzoneUIUtils', '$modal',
function ($scope, $rootScope, $state, genSevs, confirmbox, workzoneServices, toastr, workzoneUIUtils, $modal) {
var treeNames = ['Bots','Audit Trail'];
$rootScope.$emit('treeNameUpdate', treeNames);
var audit=this;
audit.gridOptions={
gridOption:{
Expand All @@ -24,6 +26,10 @@
{ name: 'End Time',field:'endedOn',
cellTemplate:'<span title="{{row.entity.endedOn | timestampToLocaleTime}}">{{row.entity.endedOn | timestampToLocaleTime}}</span>', cellTooltip: true},
{ name: 'BOT Type',displayName: 'BOT Type',field:'auditTrailConfig.type'},
{ name:'Task Type',field:'auditTrailConfig.executionType' ,cellTemplate:'<img src="images/orchestration/chef.png" ng-show="row.entity.auditTrailConfig.executionType==\'chef\'" alt="row.entity.taskType" title="Chef" class="task-type-img" />'+
'<img src="images/orchestration/jenkins.png" ng-show="row.entity.auditTrailConfig.executionType==\'jenkins\'" alt="row.entity.taskType" title="Jenkins" class="task-type-img" />'+
'<img src="images/orchestration/script.jpg" ng-show="row.entity.auditTrailConfig.executionType==\'script\'" alt="row.entity.auditTrailConfig.executionType" title="Script" class="task-type-img" />'+
'<img src="images/devops-roles/devopsRole1.png" ng-show="row.entity.action==\'BOTs Blueprint Execution\'" alt="row.entity.botType" title="Blueprint" class="task-type-img" />',cellTooltip: true},
{ name: 'BOT Name',displayName: 'BOT Name',field:'auditTrailConfig.name'},
{ name: 'Status',field:'status',
cellTemplate:'<img class="bot-status-icon" src="images/instance-states/aws-started.png" ng-show="row.entity.status === \'success\'" title="{{row.entity.status}}">' +
Expand Down Expand Up @@ -51,7 +57,7 @@
keyboard: false,
resolve: {
items: function() {
return hist
return hist;
}
}
});
Expand All @@ -64,10 +70,12 @@

audit.init =function(){
audit.gridOptions.data=[];
var url = '/audit-trail?filterBy=auditType:BOTs';
$http.get(url).then(function (data) {
angular.forEach(data,function () {
audit.gridOptions.data=data.data.auditTrails;
var param={
url:'/audit-trail?filterBy=auditType:BOTs'
};
genSevs.promiseGet(param).then(function (response) {
angular.forEach(response,function () {
audit.gridOptions.data=response.auditTrails;
});
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function (angular) {
"use strict";
angular.module('library.bots',[])
.controller('botLogsCtrl',['$scope', '$rootScope', '$http', 'genericServices', 'workzoneServices', 'toastr', '$modalInstance', 'items', '$timeout', function ($scope, $rootScope, $http, genSevs, workzoneServices, toastr, $modalInstance, items, $timeout) {
.controller('botLogsCtrl',['$scope', '$rootScope', 'genericServices', 'workzoneServices', 'toastr', '$modalInstance', 'items', '$timeout', function ($scope, $rootScope, genSevs, workzoneServices, toastr, $modalInstance, items, $timeout) {
$scope.botName = items.auditTrailConfig.name;
$scope.nodeIds = items.auditTrailConfig.nodeIds;
$scope.taskType = items.auditTrailConfig.executionType;
Expand All @@ -34,9 +34,11 @@
};
$scope.instanceChange =function(){
$scope.botLogs=[];
var url = '/audit-trail/' + $scope.selectedInstance.actionLogId + '/logs';
$http.get(url).then(function (result) {
$scope.botLogs = result.data;
var param={
url:'/audit-trail/' + $scope.selectedInstance.actionLogId + '/logs'
};
genSevs.promiseGet(param).then(function (response) {
$scope.botLogs = response;
$scope.isBotLogsLoading = false;
});
};
Expand All @@ -45,14 +47,12 @@
var requestObj = {
"instanceIds": nodeIds
};
var bluePrintJob = false;
workzoneServices.postRetrieveDetailsForInstanceNames(requestObj).then(function (response) {
var _jobInstances = response.data;
for (var k = 0; k < $scope.nodeIdsWithActionLog.length; k++) {
for (var l = 0; l < _jobInstances.length; l++) {
if ($scope.nodeIdsWithActionLog[k].nodeId === _jobInstances[l]._id) {
$scope.nodeIdsWithActionLog[k].uiNodeName = _jobInstances[l].name;
console.log($scope.nodeIdsWithActionLog[k].uiNodeName);
}
}
}
Expand All @@ -64,20 +64,22 @@
console.log(error);
});
if($scope.taskType === 'jenkins') {
var url = '/jenkins/' + $scope.jenkinsActionLogId + '/jobs/testmail/builds/' + $scope.jenkinsBuildNumber + '/output';
$http.get(url).then(function (result) {
if (result.data) {
$scope.jenkinsLogs = helper.formatLogs(result.data.output);
var param={
url:'/jenkins/' + $scope.jenkinsActionLogId + '/jobs/testmail/builds/' + $scope.jenkinsBuildNumber + '/output'
};
genSevs.promiseGet(param).then(function (response) {
if (response.data) {
$scope.jenkinsLogs = helper.formatLogs(response.data.output);
$scope.isBotLogsLoading = false;
} else {
$scope.jenkinsLogs = helper.formatLogs(result.output);
$scope.jenkinsLogs = helper.formatLogs(response.output);
$scope.isBotLogsLoading = false;
}
});
}

$scope.cancel = function() {
$modalInstance.dismiss('cancel');
}
};
}]);
})(angular);
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
$scope.jenkinsparams = items.taskConfig.parameterized;
$scope.scriptparams = items.taskConfig.scriptDetails;
$scope.parameters=[''];
var taskData={};
var cookbookAttributes = [];
var scriptParams = [];
var choiceParam = {};
Expand Down
Loading