Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
46b433d
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 25, 2016
5b25219
Changes for task scheduler
srikanthv02 Nov 27, 2016
7368bde
Merge remote-tracking branch 'upstream/dev' into devSrikanth
srikanthv02 Nov 27, 2016
a2caa70
Changes for task scheduler
srikanthv02 Nov 28, 2016
b2851e5
Merge remote-tracking branch 'upstream/dev' into devSrikanth
srikanthv02 Nov 28, 2016
7647daf
Bots summary, Bots audittrail logs UI changes.
divakarkonakalla Nov 28, 2016
9fc4585
library ui grid changes.
divakarkonakalla Nov 28, 2016
2a8186c
Merge pull request #985 from srikanthv02/devSrikanth
udeshrl Nov 28, 2016
7aa9a1b
review comments has been taken care.
divakarkonakalla Nov 28, 2016
ccdc58e
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 28, 2016
bdbef93
Merge pull request #986 from divakarkonakalla/topic-service-deliver
udeshrl Nov 28, 2016
c8e0db9
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 28, 2016
f8042c9
UI enhancements for BOTs
divakarkonakalla Nov 28, 2016
e2d614b
Task Scheduler Implementation
Durgesh1988 Nov 28, 2016
74d8be0
Task Scheduler Implementation
Durgesh1988 Nov 28, 2016
e38fa27
Merge pull request #987 from divakarkonakalla/topic-service-deliver
udeshrl Nov 29, 2016
0d93a9d
Merge pull request #988 from Durgesh1988/dev
liteverge-bot Nov 29, 2016
e094958
Task Scheduler Implementation
Durgesh1988 Nov 29, 2016
6964d6c
Merge pull request #990 from Durgesh1988/dev
liteverge-bot Nov 29, 2016
ee44f60
CAT-2531/CAT-2529/CAT-2521/CAT-2532 Fixed
Durgesh1988 Nov 29, 2016
f5d6f38
Changes for task scheduler
srikanthv02 Nov 29, 2016
eceb641
Merge pull request #992 from Durgesh1988/dev
liteverge-bot Nov 29, 2016
a43adbc
Merge pull request #993 from srikanthv02/devSrikanth
liteverge-bot Nov 29, 2016
e697952
Removed one condition and added task for scheduler
srikanthv02 Nov 29, 2016
1d48707
Merge pull request #995 from srikanthv02/devSrikanth
udeshrl Nov 29, 2016
f1b1d20
CAT-2533 fixed
Durgesh1988 Nov 29, 2016
ce29d95
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 29, 2016
7b2c4d5
Merge pull request #997 from Durgesh1988/dev
liteverge-bot Nov 29, 2016
f0713be
bots running & failed page refresh issue when deleting a bot.
divakarkonakalla Nov 29, 2016
9effeae
CAT-2552 Fixed
Durgesh1988 Nov 29, 2016
691d532
Merge remote-tracking branch 'upstream/dev' into dev
Durgesh1988 Nov 29, 2016
ff55d2b
CAT-2552 Fixed
Durgesh1988 Nov 29, 2016
873dc8c
Merge pull request #1000 from divakarkonakalla/topic-service-deliver
udeshrl Nov 30, 2016
05610fb
CAT-2521 fixed
Durgesh1988 Nov 30, 2016
935cdc7
Fixed issue with schedule edit.
divakarkonakalla Nov 30, 2016
8567145
Merge pull request #1003 from divakarkonakalla/topic-service-deliver
udeshrl Nov 30, 2016
5e6dd33
Merge pull request #1001 from Durgesh1988/dev
liteverge-bot Dec 1, 2016
6b9bcfc
Fix for CAT-2445 Incorrect Total Cost is showing in Analytics tab
Dec 1, 2016
1b2fcfc
Fix for CAT-2445 Incorrect Total Cost is showing in Analytics tab
Dec 1, 2016
da40788
Merge branch 'dev' of https://github.com/kkn/core into dev
Dec 1, 2016
0bb74d0
Check for undefined and null
srikanthv02 Dec 1, 2016
c6d67c7
Review comments taken care
srikanthv02 Dec 1, 2016
cd086e6
Merge pull request #1005 from srikanthv02/devSrikanth
udeshrl Dec 1, 2016
5ab8fa9
Fix for CAT-2445 Incorrect Total Cost is showing in Analytics tab
Dec 1, 2016
db11d2b
Merge branch 'dev' of https://github.com/kkn/core into dev
Dec 2, 2016
d93e296
Script Executor for Python and bots library Issue
Durgesh1988 Dec 2, 2016
e91c540
Resolved merge conflicts
Durgesh1988 Dec 2, 2016
aeb49c5
Resolved merge conflicts
Durgesh1988 Dec 2, 2016
4394ff1
Script Executor for Python Implementation
Durgesh1988 Dec 5, 2016
d66b946
Fix for CAT-2445 Incorrect Total Cost is showing in Analytics tab
Dec 1, 2016
cb39b4a
Merge branch 'dev' of https://github.com/kkn/core into dev
Dec 5, 2016
ddd65fb
Merge pull request #1006 from Durgesh1988/dev
liteverge-bot Dec 5, 2016
52f566b
cost aggregation fixes
Dec 5, 2016
e7d309b
Merge pull request #1007 from kkn/dev
liteverge-bot Dec 5, 2016
35c40ef
tag mapping API enhancements with doc update
Dec 7, 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
1 change: 1 addition & 0 deletions client/cat3/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
<script src="src/partials/sections/dashboard/workzone/instance/popups/updateChefRunlistConfirmationCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/instance/popups/viewRunListCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/orchestration/orchestrationCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/orchestration/popups/addChefJobEventCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/orchestration/popups/addJenkinsParamsCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/orchestration/popups/addJobLinksCtrl.js"></script>
<script src="src/partials/sections/dashboard/workzone/orchestration/popups/addScriptParamsCtrl.js"></script>
Expand Down
13 changes: 13 additions & 0 deletions client/cat3/src/factory/chefDataFormatterService.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@
}
return list;
},
formatInstanceList: function (obj) {
var list = [];
for (var i = 0; i < obj.length; i++) {
if (obj[i].instanceState === "running" || obj[i].instanceState === "pending" || obj[i].instanceState === "unknown") {
list.push({
className: 'chef',
value: obj[i].name,
data: obj[i]._id
});
}
}
return list;
},
formatRunListFromComponent: function (nodesList) {
var reqBody = {
cookbooks: [],
Expand Down
28 changes: 17 additions & 11 deletions client/cat3/src/partials/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,10 @@ accordion .panel-heading {
margin-top: 15px;
}

.margintop10 {
margin-top: 10px;
}

.marginleft15 {
margin-left: 15px;
}
Expand Down Expand Up @@ -1365,20 +1369,22 @@ label {
line-height: 34;
font-size: 13px !important;
}
.btnDay{
border-radius: 15px;
margin: 0 3px;
height: 24px;
width: 24px;
font-weight: 600;
padding: 1px 5px;

}
.activeDay {
background: #0B5475 !important;
}
}

.btnDay{
border-radius: 15px;
margin: 0 3px;
height: 24px;
width: 24px;
font-weight: 600;
padding: 1px 5px;

}
.activeDay {
background: #0B5475 !important;
}

.form-control-date{
display: block;
width: 100%;
Expand Down
45 changes: 34 additions & 11 deletions client/cat3/src/partials/sections/dashboard/bots/bots.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
height: 50px;
}

#botLibraryPage {
#botAuditTrailPage {
.ui-grid-column-menu-button {
display: none;
}
}

#botLibraryPage, #botAuditTrailPage {
.page-name {
font-size: 18px;
margin: 5px 0 5px 10px;
}

.borderTop {
border-top: 1px dashed #ddd;
}

.btn-xs {
padding: 1px 5px;
font-size: 12px;
Expand All @@ -39,23 +41,44 @@
margin: 2px 10px 0 0;
}

.borderTop {
border-top: 1px dashed #ddd;
}
}

#botLibraryPage {
.summary-container {
width: 100%;
}

.selected {
border: 2px solid #000;
height: 94px !important;
margin-top: 13px !important;
height: 92px !important;
margin-top: 14px !important;
}

.selected-blue {
color: #00c0ef !important;
border: 1px solid #00c0ef !important;
}

.selected-green {
color: #00a65a !important;
border: 1px solid #00a65a !important;
}

.selected-red {
color: #dd4b39 !important;
border: 1px solid #dd4b39 !important;
}

.info-box {
display: block;
min-height: 90px;
background: #ecf0f5;
background: #fff;
width: 100%;
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
margin: 15px 0;
border: 1px solid #ccc;
}

.info-box-content {
Expand Down Expand Up @@ -84,8 +107,8 @@
.info-box-icon {
display: block;
float: left;
height: 90px;
width: 90px;
height: 88px;
width: 88px;
text-align: center;
font-size: 45px;
line-height: 90px;
Expand Down
2 changes: 0 additions & 2 deletions client/cat3/src/partials/sections/dashboard/bots/botsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
});
}])
.controller('botsCtrl',['$scope', '$rootScope', '$state', function ($scope, $rootScope, $state) {
/*var treeNames = ['Bots'];
$rootScope.$emit('treeNameUpdate', treeNames);*/
$state.go('dashboard.bots.library');
$rootScope.stateItems = $state.params;
}]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
data:[]
};
var gridBottomSpace = 5;
var gridBottomSpace = 40;
$scope.gridHeight = workzoneUIUtils.makeTabScrollable('botAuditTrailPage') - gridBottomSpace;

$scope.botAuditTrailLogs=function(hist) {
Expand All @@ -68,6 +68,10 @@
});
};

$scope.RefreshBotsAuditTrail = function() {
audit.init();
};

audit.init =function(){
audit.gridOptions.data=[];
var param={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
}
};
$scope.instanceChange =function(){
$scope.isBotLogsLoading = true;
$scope.botLogs=[];
var param={
inlineLoader: true,
url:'/audit-trail/' + $scope.selectedInstance.actionLogId + '/logs'
};
genSevs.promiseGet(param).then(function (response) {
Expand Down Expand Up @@ -65,14 +67,15 @@
});
if($scope.taskType === 'jenkins') {
var param={
inlineLoader: true,
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);
if (response) {
$scope.jenkinsLogs = helper.formatLogs(response.output);
$scope.isBotLogsLoading = false;
} else {
$scope.jenkinsLogs = helper.formatLogs(response.output);
$scope.jenkinsLogs = helper.formatLogs(response.data.output);
$scope.isBotLogsLoading = false;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
multiSelect :false,
},
columnDefs: [
{ name:'Task Type', width:100,field:'taskType' ,cellTemplate:'<img src="images/orchestration/chef.png" ng-show="row.entity.taskType==\'chef\'" alt="row.entity.taskType" title="Chef" class="task-type-img" />'+
{ name:'Task Type', field:'taskType' ,cellTemplate:'<img src="images/orchestration/chef.png" ng-show="row.entity.taskType==\'chef\'" alt="row.entity.taskType" title="Chef" class="task-type-img" />'+
'<img src="images/orchestration/jenkins.png" ng-show="row.entity.taskType==\'jenkins\'" alt="row.entity.taskType" title="Jenkins" class="task-type-img" />'+
'<img src="images/orchestration/script.jpg" ng-show="row.entity.taskType==\'script\'" alt="row.entity.taskType" title="Script" class="task-type-img" />'+
'<img src="images/devops-roles/devopsRole1.png" ng-show="row.entity.blueprintType" alt="row.entity.botType" title="Blueprint" class="task-type-img" />',cellTooltip: true},
Expand All @@ -30,7 +30,7 @@
{ name: 'Category',field:'botCategory'},
{ name: 'description',field:'shortDesc'},
{ name: 'BOT History',displayName: 'BOT History',cellTemplate:'<span ng-show="row.entity.blueprintType">NA</span>'+
'<span class="btn cat-btn-update control-panel-button" title="History" ng-show="row.entity.taskType" ng-click="grid.appScope.botLogs(row.entity);"><i class="fa fa-header white"></i></span>'},
'<span class="btn cat-btn-update control-panel-button" title="History" ng-show="row.entity.taskType" ng-click="grid.appScope.botLogs(row.entity);"><i class="fa fa-header white"></i></span>'},
{ name: 'BOT Action',displayName: 'BOT Action',cellTemplate:'<span class="btn cat-btn-update control-panel-button" title="Execute" ng-click="grid.appScope.launchInstance(row.entity);"><i class="fa fa-play white"></i></span>' +
'<span class="btn btn-danger control-panel-button" title="Delete Task" ng-show="row.entity.taskType" ng-click="grid.appScope.deleteBotTask(row.entity);"><i class="fa fa-trash-o white"></i></span>' +
'<span class="btn btn-danger control-panel-button" title="Delete Blueprint" ng-show="row.entity.blueprintType" ng-click="grid.appScope.deleteBotBP(row.entity);"><i class="fa fa-trash-o white"></i></span>'
Expand Down Expand Up @@ -65,7 +65,16 @@
genSevs.promiseDelete(param).then(function (response) {
if (response) {
toastr.success('Successfully deleted');
lib.init();
if($scope.totalBotsSelected) {
lib.init();
} else if($scope.runningBotsselected) {
$scope.showBotsRunning();
} else if($scope.failedBotsselected) {
$scope.showFailedBots();
} else {
lib.init();
}
lib.summary();
}
}, function(data) {
toastr.error('error:: ' + data.toString());
Expand All @@ -87,20 +96,31 @@
genSevs.promiseDelete(param).then(function (response) {
if (response) {
toastr.success('Successfully deleted');
lib.init();
if($scope.totalBotsSelected) {
lib.init();
} else if($scope.runningBotsselected) {
$scope.showBotsRunning();
} else if($scope.failedBotsselected) {
$scope.showFailedBots();
} else {
lib.init();
}
lib.summary();
}
}, function(data) {
toastr.error('error:: ' + data.toString());
});
});
};
$rootScope.$on('BOTS_LIBRARY_REFRESH', function() {
lib.summary();
lib.init();
});
$scope.RefreshBotsLibrary = function() {
$scope.totalBotsSelected = true;
$scope.runningBotsselected = false;
$scope.failedBotsselected = false;
lib.summary();
lib.init();
};
$scope.showBotsRunning = function() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<link rel='stylesheet' href='catalyst/partials/sections/dashboard/bots/bots.css'>

<div id="botAuditTrailPage">
<div class="page-name">
BOTs Audit Trail&nbsp;
<button type="button" title="Refresh" class="btn btn-xs btn-primary pull-right refresh-btn" ng-click="RefreshBotsAuditTrail();">
<i class="fa fa-refresh" style="color: #fff"></i>
</button>
</div>
<div class="borderTop"></div>

<div id="grid1" ng-if="audit.gridOptions.data.length > 0" ui-grid="audit.gridOptions" ui-grid-pagination class="grid" style="height: {{gridHeight}}px"></div>
<div class="alert alert-info text-center" ng-if="!audit.gridOptions.data.length > 0">
No data Available
Expand Down
46 changes: 24 additions & 22 deletions client/cat3/src/partials/sections/dashboard/bots/view/botLogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,32 @@ <h4 class="modal-title">
</div>

<div class="modal-body">
<div class="logsArea">
<loading size="large" name="isBotLogsLoading" align="center" type="block"></loading>
<div ng-show="!isBotLogsLoading">
<div ng-show="taskType !== 'jenkins'">
<div id="selectInstanceFromDropdown">
<label class="col-md-3 col-sm-3 col-xs-4 text-padding control-label margintop8">Select Instance<sup class="red">*</sup>
</label>
<span class="col-md-4 col-sm-4 col-xs-8 no-padding">
<select class="form-control" ng-model="selectedInstance" ng-change="instanceChange()" ng-options="chefInstance as chefInstance.uiNodeName for chefInstance in nodeIdsWithActionLog">
</select>
</span>
</div>
<div class="rowSpacing col-lg-12 col-sm-12 {{log.err ? 'logErrorMsg':'logMsg'}}" ng-repeat="log in botLogs">
<span class="timeStamp"> {{log.timestamp | timestampToLocaleTime}} </span>
<span class="logInfo"> {{log.log}} </span>
</div>
</div>
<div ng-show="taskType === 'jenkins'">
<div class="rowSpacing col-lg-12 col-sm-12">
<p ng-bind-html="jenkinsLogs"></p>
</div>
<fieldset>
<div class="logsArea">
<loading size="large" name="isBotLogsLoading" align="center" type="block"></loading>
<div ng-show="!isBotLogsLoading">
<div ng-show="taskType !== 'jenkins'">
<div id="selectInstanceFromDropdown">
<label class="col-md-3 col-sm-3 col-xs-4 text-padding control-label margintop8">Select Instance<sup class="red">*</sup>
</label>
<span class="col-md-4 col-sm-4 col-xs-8 no-padding">
<select class="form-control" ng-model="selectedInstance" ng-change="instanceChange()" ng-options="chefInstance as chefInstance.uiNodeName for chefInstance in nodeIdsWithActionLog">
</select>
</span>
</div>
<div class="rowSpacing col-lg-12 col-sm-12 {{log.err ? 'logErrorMsg':'logMsg'}}" ng-repeat="log in botLogs">
<span class="timeStamp"> {{log.timestamp | timestampToLocaleTime}} </span>
<span class="logInfo"> {{log.log}} </span>
</div>
</div>
<div ng-show="taskType === 'jenkins'">
<div class="rowSpacing col-lg-12 col-sm-12">
<p ng-bind-html="jenkinsLogs"></p>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</div>

<div class="modal-footer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<div class="container summary-container">
<div class="panel-group text-center">
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box cursor" ng-click="RefreshBotsLibrary()" ng-class="{'selected':totalBotsSelected === true}">
<div class="info-box cursor" ng-click="RefreshBotsLibrary()" ng-class="{'selected-blue':totalBotsSelected}">
<span class="info-box-icon bg-aqua">
<i class="fa fa-th" style="color: #ecf0f5"></i>
<i class="fa fa-list-ol" style="color: #fff"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">Total Number of BOTs</span>
Expand All @@ -22,9 +22,9 @@
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box cursor" ng-click="showBotsRunning()" ng-class="{'selected':runningBotsselected === true}">
<div class="info-box cursor" ng-click="showBotsRunning()" ng-class="{'selected-green':runningBotsselected}">
<span class="info-box-icon bg-green">
<i class="fa fa-laptop" style="color: #ecf0f5"></i>
<i class="fa fa-cogs" style="color: #fff"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">Number of BOTs running</span>
Expand All @@ -35,7 +35,7 @@
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-yellow">
<i class="fa fa-cube" style="color: #ecf0f5"></i>
<i class="fa fa-save" style="color: #fff"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">Total Time saved</span>
Expand All @@ -44,9 +44,9 @@
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box cursor" ng-click="showFailedBots()" ng-class="{'selected':failedBotsselected === true}">
<div class="info-box cursor" ng-click="showFailedBots()" ng-class="{'selected-red':failedBotsselected}">
<span class="info-box-icon bg-red">
<i class="fa fa-external-link" style="color: #ecf0f5"></i>
<i class="fa fa-remove" style="color: #fff"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">Number of failed runs</span>
Expand Down
Loading