You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2017/06/01 06:55:54 UTC
[6/7] incubator-griffin git commit: Schedule2
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createdataasset-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createdataasset-ctrl.js b/ui/js/controllers/createdataasset-ctrl.js
index d951851..a92a844 100644
--- a/ui/js/controllers/createdataasset-ctrl.js
+++ b/ui/js/controllers/createdataasset-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('CreateDataAssetCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function ($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createjob-ac-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createjob-ac-ctrl.js b/ui/js/controllers/createjob-ac-ctrl.js
new file mode 100644
index 0000000..a5e9620
--- /dev/null
+++ b/ui/js/controllers/createjob-ac-ctrl.js
@@ -0,0 +1,160 @@
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
+
+define(['./module'], function(controllers) {
+ 'use strict';
+ controllers.controller('CreateJobACCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
+ console.log('Create job controller');
+ $scope.currentStep = 1;
+
+ $scope.Measures = [];
+ $scope.$on('$viewContentLoaded', function() {
+ // console.log($('#footerwrap').css('height'));
+ // console.log($('.formStep').offset());
+ $scope.$emit('initReq');
+ resizeWindow();
+
+ // $('#confirm').on('hidden.bs.modal', function (e) {
+ // console.log('hidden');
+ // // $('#confirm').off('hidden.bs.modal');
+ // $location.path('/rules');
+ // });
+
+ // $('.formStep').css({height: 800});
+ });
+ var getMeasureUrl = $config.uri.getMeasuresByOwner+$scope.ntAccount;
+ $http.get(getMeasureUrl).success(function(res){
+ angular.forEach(res,function(measure){
+ $scope.Measures.push(measure);
+ })
+ console.log($scope.Measures);
+ })
+
+
+
+ $scope.$on('resizeHandler', function(e) {
+ if ($route.current.$$route.controller == "CreateRuleACCtrl") {
+ $scope.$emit('initReq');
+ resizeWindow();
+ }
+ });
+
+
+ function resizeWindow() {
+ var stepSelection = '.formStep[id=step-' + $scope.currentStep + ']';
+ $(stepSelection).css({
+ height: window.innerHeight - $(stepSelection).offset().top - $('#footerwrap').outerHeight()
+ });
+ $('fieldset').height($(stepSelection).height() - $(stepSelection + '>.stepDesc').height() - $('.btn-container').height() - 80);
+ $('.y-scrollable').css({
+ 'max-height': $('fieldset').height()- $('.add-dataset').outerHeight()
+ });
+
+ }
+
+ // Initial Value
+ $scope.form = {
+ submit: function(form) {
+ if (!form.$valid) {
+ var field = null
+ , firstError = null ;
+ for (field in form) {
+ if (field[0] != '$') {
+ if (firstError === null && !form[field].$valid) {
+ firstError = form[field].$name;
+ }
+
+ if (form[field].$invalid) {
+ form[field].$dirty = true;
+ }
+ }
+ }
+ angular.element('.ng-invalid[name=' + firstError + ']').focus();
+ errorMessage($scope.currentStep);
+ } else {
+ // $location.path('/rules');
+ form.$setPristine();
+ var rule = '';
+ this.data={
+ "sourcePat":$scope.sourcePat,
+ "targetPat":$scope.targetPat,
+ "jobStartTime":$scope.jobStartTime,
+ "periodTime":$scope.periodTime,
+ "groupName":'BA',
+ };
+ $('#confirm-job').modal('show');
+ }
+ },
+
+ save: function() {
+
+
+ //::TODO: Need to save the data to backend with POST/PUT method
+ console.log(JSON.stringify($scope.form.data));
+
+// var newModel = $config.uri.newAccuracyModel;
+// var BACKEND_SERVER = '';
+ var date = new Date();
+ var month = date.getMonth()+1;
+ var timestamp = Date.parse(date);
+ timestamp = timestamp / 1000;
+ var jobName = $scope.Measures[$scope.measure] + '-BA-' + $scope.ntAccount + '-' + date.getFullYear() + '-'+ month + '-'+date.getDate();
+ var newJob = $config.uri.addJobs + this.data.groupName + '/' + jobName + '/' + $scope.Measures[$scope.measure];
+ console.log(newJob);
+ console.log(this.data);
+ $http.post(newJob, this.data).success(function(data) {
+ // if(data.status=='0')
+ // {
+ console.log(data);
+ if(data=='fail'){
+ toaster.pop('error', 'Please modify the name of job, because there is already a same model in database ', data.message);
+ return;
+ }
+
+ $('#confirm-job').on('hidden.bs.modal', function(e) {
+ $('#confirm-job').off('hidden.bs.modal');
+ $location.path('/jobs').replace();
+ $scope.$apply();
+ });
+ $('#confirm-job').modal('hide');
+ // }
+ // else
+ // {
+ // errorMessage(0, data.result);
+ // }
+
+ }).error(function(data){
+ // errorMessage(0, 'Save model failed, please try again!');
+ toaster.pop('error', 'Save model failed, please try again!', data.message);
+ });
+
+ },
+
+ }
+
+ var errorMessage = function(i, msg) {
+ var errorMsgs = ['Please select at least one attribute!', 'Please select at least one attribute in target, make sure target is different from source!', 'Please make sure to map each target to a unique source.', 'please complete the form in this step before proceeding'];
+ if (!msg) {
+ toaster.pop('error', 'Error', errorMsgs[i - 1], 0);
+ } else {
+ toaster.pop('error', 'Error', msg, 0);
+ }
+ };
+ }
+ ]);
+
+
+});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createjob0.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createjob0.js b/ui/js/controllers/createjob0.js
new file mode 100644
index 0000000..7b3db39
--- /dev/null
+++ b/ui/js/controllers/createjob0.js
@@ -0,0 +1,43 @@
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
+
+define(['./module'], function (controllers) {
+ 'use strict';
+ controllers.controller('CreateJob0Ctrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', function ($scope, $http, $config, $location, toaster, $timeout, $route) {
+ console.log('Create job 0 controller');
+ $scope.publishURL = document.location.origin;
+
+ $scope.click = function(type){
+ $location.path('/createjob-' + type);
+ }
+ $scope.$on('$viewContentLoaded', function(){
+ $scope.$emit('initReq');
+ resizeWindow();
+ });
+
+ $scope.$on('resizeHandler', function(e) {
+ if($route.current.$$route.controller == 'CreateJob0Ctrl'){
+ console.log('createjob0 resize');
+ resizeWindow();
+ }
+ });
+
+ function resizeWindow(){
+ $('#panel-2 >.panel-body').css({height: $('#panel-1 >.panel-body').outerHeight() + $('#panel-1 >.panel-footer').outerHeight() - $('#panel-2 >.panel-footer').outerHeight()});
+ $('#panel-4 >.panel-body').css({height: $('#panel-3 >.panel-body').outerHeight() + $('#panel-3 >.panel-footer').outerHeight() - $('#panel-4 >.panel-footer').outerHeight()});
+ }
+ }]);
+});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createrule-ac-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createrule-ac-ctrl.js b/ui/js/controllers/createrule-ac-ctrl.js
index 4e00749..79b918f 100644
--- a/ui/js/controllers/createrule-ac-ctrl.js
+++ b/ui/js/controllers/createrule-ac-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('CreateRuleACCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
@@ -87,7 +88,7 @@ define(['./module'], function(controllers) {
// $scope.schemaCollection = null;
if (newValue) {
- $http.get(schemaDefinitionUrl + '/table/' + newValue.name).success(function(data) {
+ $http.get(schemaDefinitionUrl+ '/' + newValue.parent[0].dbName+'/table/'+newValue.name).success(function(data) {
console.log(data);
$scope.schemaCollection = data.sd.cols;
console.log($scope.schemaCollection);
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createrule-an-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createrule-an-ctrl.js b/ui/js/controllers/createrule-an-ctrl.js
index 891c23e..59282b6 100644
--- a/ui/js/controllers/createrule-an-ctrl.js
+++ b/ui/js/controllers/createrule-an-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('CreateRuleANCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createrule-pu-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createrule-pu-ctrl.js b/ui/js/controllers/createrule-pu-ctrl.js
index 1786fb3..5d217d6 100644
--- a/ui/js/controllers/createrule-pu-ctrl.js
+++ b/ui/js/controllers/createrule-pu-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('CreateRulePUCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createrule-va-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createrule-va-ctrl.js b/ui/js/controllers/createrule-va-ctrl.js
index 882f807..16a30e3 100644
--- a/ui/js/controllers/createrule-va-ctrl.js
+++ b/ui/js/controllers/createrule-va-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('CreateRuleVACtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/createrule0-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/createrule0-ctrl.js b/ui/js/controllers/createrule0-ctrl.js
index 241445a..8a954b3 100644
--- a/ui/js/controllers/createrule0-ctrl.js
+++ b/ui/js/controllers/createrule0-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (controllers) {
'use strict';
controllers.controller('CreateRule0Ctrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', function ($scope, $http, $config, $location, toaster, $timeout, $route) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/dataassets-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/dataassets-ctrl.js b/ui/js/controllers/dataassets-ctrl.js
index 110da44..d33fd36 100644
--- a/ui/js/controllers/dataassets-ctrl.js
+++ b/ui/js/controllers/dataassets-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('DataAssetsCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function ($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/downloadSample-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/downloadSample-ctrl.js b/ui/js/controllers/downloadSample-ctrl.js
index aa1ad89..290693f 100644
--- a/ui/js/controllers/downloadSample-ctrl.js
+++ b/ui/js/controllers/downloadSample-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('DownloadSampleCtrl', ['$scope', '$http', '$config', '$filter', '$timeout', '$compile', '$routeParams', '$barkChart', '$rootScope', function($scope, $http, $config, $filter, $timeout, $compile, $routeParams, $barkChart, $rootScope) {
@@ -33,4 +34,4 @@ define(['./module'], function(controllers) {
}
]);
-});
\ No newline at end of file
+});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/editdataasset-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/editdataasset-ctrl.js b/ui/js/controllers/editdataasset-ctrl.js
index 718525c..858d07f 100644
--- a/ui/js/controllers/editdataasset-ctrl.js
+++ b/ui/js/controllers/editdataasset-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('EditDataAssetCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$routeParams', '$filter', function ($scope, $http, $config, $location, toaster, $timeout, $route, $routeParams, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/footer-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/footer-ctrl.js b/ui/js/controllers/footer-ctrl.js
index 7eb9e13..2788e98 100644
--- a/ui/js/controllers/footer-ctrl.js
+++ b/ui/js/controllers/footer-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('FooterCtrl', ['$scope', '$http', '$config', '$location', '$cookies', '$interval', function ($scope, $http, $config, $location, $cookies, $interval) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/health-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/health-ctrl.js b/ui/js/controllers/health-ctrl.js
index 3c0c662..fe3c90e 100644
--- a/ui/js/controllers/health-ctrl.js
+++ b/ui/js/controllers/health-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('HealthCtrl', ['$scope', '$http', '$config', '$location','$timeout', '$route', '$barkChart', '$rootScope', function ($scope, $http, $config, $location, $timeout, $route, $barkChart, $rootScope) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/index.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/index.js b/ui/js/controllers/index.js
index a374161..84de409 100644
--- a/ui/js/controllers/index.js
+++ b/ui/js/controllers/index.js
@@ -1,23 +1,26 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define([
'./nav-ctrl',
'./sidebar-ctrl',
'./health-ctrl',
'./rule-ctrl',
+ './job-ctrl',
+ './createjob-ac-ctrl',
'./createrule0-ctrl',
'./createrule-ac-ctrl',
'./createrule-va-ctrl',
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/job-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/job-ctrl.js b/ui/js/controllers/job-ctrl.js
new file mode 100644
index 0000000..d739fb8
--- /dev/null
+++ b/ui/js/controllers/job-ctrl.js
@@ -0,0 +1,127 @@
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
+
+define(['./module'], function (controllers) {
+ 'use strict';
+ controllers.controller('JobCtrl', ['$scope', '$http', '$config', '$location', '$timeout', '$route', 'toaster', '$filter', function ($scope, $http, $config, $location, $timeout, $route, toaster, $filter) {
+ console.log('job controller');
+ console.log($scope.ntAccount);
+ var allJobs = $config.uri.allJobs;
+ var ts = null;
+ var start = 0;
+ var number = 10;
+ var originalRowCollection = undefined;
+
+ $scope.paging = function(tableState){
+ console.log(tableState);
+ ts = tableState;
+
+ // tableState.pagination.numberOfPages = $scope.rowCollection.length/10 + 1;
+ start = tableState.pagination.start || 0;
+ number = tableState.pagination.number || 10;
+
+ if(start == 0 && !$scope.rowCollection){
+ $http.get(allJobs).success(function(data) {
+ originalRowCollection = angular.copy(data);
+ $scope.rowCollection = angular.copy(data);
+
+ $scope.displayed = $scope.rowCollection.slice(start, start+number);
+ tableState.pagination.numberOfPages = Math.ceil($scope.rowCollection.length/number);
+ });
+ }else{
+ $scope.displayed = $scope.rowCollection.slice(start, start+number);
+ }
+ };
+
+
+
+
+ $scope.remove = function remove(row) {
+// var getJobUrl = $config.uri.getJob + '/' +row.name;
+// $http.get(getJobUrl).success(function(data){
+// $scope.deletedRow = data;
+//
+// });
+ $scope.deletedRow = row;
+ $scope.deletedBriefRow = row;
+ $('#deleteJobConfirmation').modal('show');
+ }
+
+ $scope.confirmDelete = function(){
+ var row = $scope.deletedBriefRow;
+ var deleteModelUrl = $config.uri.deleteJob + row.groupName+'/jobs/'+row.jobName;
+ $http.delete(deleteModelUrl).success(function(){
+
+ var index = $scope.rowCollection.indexOf(row);
+ $scope.rowCollection.splice(index, 1);
+
+ index = $scope.displayed.indexOf(row);
+ $scope.displayed.splice(index, 1);
+
+ $('#deleteJobConfirmation').modal('hide');
+
+ }).error(function(data, status){
+ toaster.pop('error', 'Error when deleting record', data);
+ });
+ }
+
+
+
+ $scope.edit = function edit() {
+ }
+
+
+ $scope.$on('$viewContentLoaded', function() {
+ $scope.$emit('initReq');
+ });
+
+
+/*
+ function createRowCollection(){
+ var data = [];
+ for (var j = 0; j < 22; j++) {
+ data.push(createRandomItem());
+ }
+
+ return data;
+ }
+
+ function createRandomItem() {
+ var nameList = ['ViewItem', 'Search', 'BidEvent', 'user_dna', 'LAST_ITEMS_VIEWED'],
+ systemList = ['Bullseye', 'PDS', 'GPS', 'IDLS', 'Hadoop'],
+ dateList = ['2016-03-10', '2016-03-12', '2016-03-15', '2016-03-19', '2016-03-20'],
+ statusList = [0, 1, 2];
+
+ var
+ name = nameList[Math.floor(Math.random() * 5)],
+ system = Math.floor(Math.random() * 7),
+ type = Math.floor(Math.random() * 4),
+ description = 'Only for demo purpose',
+ createDate = dateList[Math.floor(Math.random() * 5)],
+ status = Math.floor(Math.random() * 3);
+
+ return{
+ name: name,
+ system: system,
+ type: type,
+ description: description,
+ createDate: createDate,
+ status:status
+ };
+ }
+*/
+ }]);
+});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/main-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/main-ctrl.js b/ui/js/controllers/main-ctrl.js
index 37274af..f7ca72a 100644
--- a/ui/js/controllers/main-ctrl.js
+++ b/ui/js/controllers/main-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('MainCtrl', ['$scope', '$http', '$config', '$location', '$routeParams', '$timeout', '$compile', '$route', '$barkChart', '$rootScope', function($scope, $http, $config, $location, $routeParams, $timeout, $compile, $route, $barkChart, $rootScope) {
@@ -33,4 +34,4 @@ define(['./module'], function(controllers) {
})
}
]);
-});
\ No newline at end of file
+});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/metrics-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/metrics-ctrl.js b/ui/js/controllers/metrics-ctrl.js
index 5452f27..4637358 100644
--- a/ui/js/controllers/metrics-ctrl.js
+++ b/ui/js/controllers/metrics-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('MetricsCtrl', ['$scope', '$http', '$config', '$location', '$routeParams', '$timeout', '$compile', '$route', '$barkChart', '$rootScope',function($scope, $http, $config, $location, $routeParams, $timeout, $compile, $route, $barkChart, $rootScope) {
@@ -37,10 +38,7 @@ define(['./module'], function(controllers) {
orgNode.assetMap = value;
});
$scope.originalOrgs = angular.copy($scope.orgs);
-
- var url_briefmetrics = $config.uri.dashboard;
- $http.post(url_dashboard, {"query": {"match_all":{}}, "sort": [{"tmst": {"order": "asc"}}], "size": 1000}).success(function(data) {
- $scope.briefmetrics = data;
+ $http.post(url_dashboard, {"query": {"match_all":{}}, "sort": [{"tmst": {"order": "asc"}}],"size":1000}).success(function(data) {
angular.forEach(data.hits.hits, function(sys) {
var chartData = sys._source;
chartData.sort = function(a,b){
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/module.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/module.js b/ui/js/controllers/module.js
index 624c962..fbd571a 100644
--- a/ui/js/controllers/module.js
+++ b/ui/js/controllers/module.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['angular'], function (ng) {
'use strict';
return ng.module('app.controllers', []);
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/mydashboard-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/mydashboard-ctrl.js b/ui/js/controllers/mydashboard-ctrl.js
index 3cc215d..b258f3f 100644
--- a/ui/js/controllers/mydashboard-ctrl.js
+++ b/ui/js/controllers/mydashboard-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('MyDashboardCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', '$compile', '$barkChart', '$rootScope', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter, $compile, $barkChart, $rootScope) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/nav-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/nav-ctrl.js b/ui/js/controllers/nav-ctrl.js
index 8808000..1ccac18 100644
--- a/ui/js/controllers/nav-ctrl.js
+++ b/ui/js/controllers/nav-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (controllers) {
'use strict';
controllers.controller('NavCtrl', ['$scope', '$http', '$config', '$location', '$cookies', '$rootScope', '$timeout', function ($scope, $http, $config, $location, $cookies, $rootScope, $timeout) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/rule-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/rule-ctrl.js b/ui/js/controllers/rule-ctrl.js
index a202c2c..2f40855 100644
--- a/ui/js/controllers/rule-ctrl.js
+++ b/ui/js/controllers/rule-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('RuleCtrl', ['$scope', '$http', '$config', '$location', '$timeout', '$route', 'toaster', '$filter', function ($scope, $http, $config, $location, $timeout, $route, toaster, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/sidebar-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/sidebar-ctrl.js b/ui/js/controllers/sidebar-ctrl.js
index 7cf4945..e048ed3 100644
--- a/ui/js/controllers/sidebar-ctrl.js
+++ b/ui/js/controllers/sidebar-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('SideBarCtrl', ['$scope', '$http', '$config', '$filter', '$timeout', '$compile', '$routeParams', '$barkChart', '$rootScope', function($scope, $http, $config, $filter, $timeout, $compile, $routeParams, $barkChart, $rootScope) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/subscribemodel-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/subscribemodel-ctrl.js b/ui/js/controllers/subscribemodel-ctrl.js
index e13bfd1..1a3a001 100644
--- a/ui/js/controllers/subscribemodel-ctrl.js
+++ b/ui/js/controllers/subscribemodel-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function(controllers) {
'use strict';
controllers.controller('SubscribeModelCtrl', ['$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$route', '$filter', function($scope, $http, $config, $location, toaster, $timeout, $route, $filter) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/controllers/viewrule-ctrl.js
----------------------------------------------------------------------
diff --git a/ui/js/controllers/viewrule-ctrl.js b/ui/js/controllers/viewrule-ctrl.js
index 0c8c7e5..42d2e01 100644
--- a/ui/js/controllers/viewrule-ctrl.js
+++ b/ui/js/controllers/viewrule-ctrl.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (controllers) {
'use strict';
controllers.controller('ViewRuleCtrl', ['$filter', '$scope', '$http', '$config', '$location', 'toaster', '$timeout', '$routeParams', '$barkChart', '$route', function ($filter, $scope, $http, $config, $location, toaster, $timeout, $routeParams, $barkChart, $route) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/directives/bigchart.js
----------------------------------------------------------------------
diff --git a/ui/js/directives/bigchart.js b/ui/js/directives/bigchart.js
index c8e3fc5..4fccaf9 100644
--- a/ui/js/directives/bigchart.js
+++ b/ui/js/directives/bigchart.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (directives) {
'use strict';
directives.directive( 'bigChart', ['$compile', '$timeout', function( $compile, $timeout ) {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/directives/index.js
----------------------------------------------------------------------
diff --git a/ui/js/directives/index.js b/ui/js/directives/index.js
index 7bbb0e4..94e8fe6 100644
--- a/ui/js/directives/index.js
+++ b/ui/js/directives/index.js
@@ -1,15 +1,16 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./treeview', './bigchart'], function () {});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/directives/module.js
----------------------------------------------------------------------
diff --git a/ui/js/directives/module.js b/ui/js/directives/module.js
index 3656955..f5ac32b 100644
--- a/ui/js/directives/module.js
+++ b/ui/js/directives/module.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*/
+
define(['angular'], function (ng) {
'use strict';
return ng.module('app.directives', []);
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/directives/treeview.js
----------------------------------------------------------------------
diff --git a/ui/js/directives/treeview.js b/ui/js/directives/treeview.js
index fe40995..1d09770 100644
--- a/ui/js/directives/treeview.js
+++ b/ui/js/directives/treeview.js
@@ -1,3 +1,18 @@
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
/*
The MIT License (MIT)
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/filters/index.js
----------------------------------------------------------------------
diff --git a/ui/js/filters/index.js b/ui/js/filters/index.js
index bcd414c..3789392 100644
--- a/ui/js/filters/index.js
+++ b/ui/js/filters/index.js
@@ -1,15 +1,16 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define([ './strshorten', './strmap'], function () {});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/filters/module.js
----------------------------------------------------------------------
diff --git a/ui/js/filters/module.js b/ui/js/filters/module.js
index 3b35aeb..c505ecc 100644
--- a/ui/js/filters/module.js
+++ b/ui/js/filters/module.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['angular'], function (ng) {
'use strict';
return ng.module('app.filters', []).config(
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/filters/strmap.js
----------------------------------------------------------------------
diff --git a/ui/js/filters/strmap.js b/ui/js/filters/strmap.js
index daa8df7..94190a5 100644
--- a/ui/js/filters/strmap.js
+++ b/ui/js/filters/strmap.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (filters) {
'use strict';
var constants = {
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/filters/strshorten.js
----------------------------------------------------------------------
diff --git a/ui/js/filters/strshorten.js b/ui/js/filters/strshorten.js
index f4dadf7..4bdb4b1 100644
--- a/ui/js/filters/strshorten.js
+++ b/ui/js/filters/strshorten.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (filters) {
'use strict';
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/main.js
----------------------------------------------------------------------
diff --git a/ui/js/main.js b/ui/js/main.js
index 8103358..a58015e 100644
--- a/ui/js/main.js
+++ b/ui/js/main.js
@@ -1,17 +1,17 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
//Reference: https://www.startersquad.com/blog/angularjs-requirejs/
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/routes.js
----------------------------------------------------------------------
diff --git a/ui/js/routes.js b/ui/js/routes.js
index 099e3ee..943196e 100644
--- a/ui/js/routes.js
+++ b/ui/js/routes.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./app'], function(app) {
'use strict';
@@ -26,46 +27,56 @@ define(['./app'], function(app) {
controller: 'HealthCtrl'
});
- $routeProvider.when('/rules', {
- templateUrl: '/pages/rules/rules.html',
+ $routeProvider.when('/measures', {
+ templateUrl: '/pages/measures/measures.html',
controller: 'RuleCtrl'
});
$routeProvider.when('/createrule0', {
- templateUrl: '/pages/rules/createrule0.html',
+ templateUrl: '/pages/measures/createrule0.html',
controller: 'CreateRule0Ctrl'
});
$routeProvider.when('/createrule-ac', {
- templateUrl: '/pages/rules/createrule-ac.html',
+ templateUrl: '/pages/measures/createrule-ac.html',
controller: 'CreateRuleACCtrl'
});
$routeProvider.when('/createrule-va', {
- templateUrl: '/pages/rules/createrule-va.html',
+ templateUrl: '/pages/measures/createrule-va.html',
controller: 'CreateRuleVACtrl'
});
$routeProvider.when('/createrule-an', {
- templateUrl: '/pages/rules/createrule-an.html',
+ templateUrl: '/pages/measures/createrule-an.html',
controller: 'CreateRuleANCtrl'
});
$routeProvider.when('/createrule-pu', {
- templateUrl: '/pages/rules/createrule-pu.html',
+ templateUrl: '/pages/measures/createrule-pu.html',
controller: 'CreateRulePUCtrl'
});
$routeProvider.when('/viewrule/:modelname/:modeltype', {
- templateUrl: '/pages/rules/viewrule.html',
+ templateUrl: '/pages/measures/viewrule.html',
controller: 'ViewRuleCtrl'
});
$routeProvider.when('/viewrule/:modelname', {
- templateUrl: '/pages/rules/viewrule.html',
+ templateUrl: '/pages/measures/viewrule.html',
controller: 'ViewRuleCtrl'
});
+ $routeProvider.when('/jobs',{
+ templateUrl:'pages/jobs/jobs.html',
+ controller:'JobCtrl'
+ });
+
+ $routeProvider.when('/createjob-ac', {
+ templateUrl: '/pages/jobs/createjob-ac.html',
+ controller: 'CreateJobACCtrl'
+ });
+
$routeProvider.when('/metrics', {
templateUrl: '/pages/metrics/dashboard.html',
controller: 'MetricsCtrl'
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/services/bark-chart.js
----------------------------------------------------------------------
diff --git a/ui/js/services/bark-chart.js b/ui/js/services/bark-chart.js
index 2df8748..85cc7ae 100644
--- a/ui/js/services/bark-chart.js
+++ b/ui/js/services/bark-chart.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
define(['./module'], function (services) {
services.factory('$barkChart', function(){
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/services/index.js
----------------------------------------------------------------------
diff --git a/ui/js/services/index.js b/ui/js/services/index.js
index 17a5aa7..df98854 100644
--- a/ui/js/services/index.js
+++ b/ui/js/services/index.js
@@ -1,15 +1,16 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./services', './bark-chart'], function () {});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/services/module.js
----------------------------------------------------------------------
diff --git a/ui/js/services/module.js b/ui/js/services/module.js
index f8fbecb..3e1f38a 100644
--- a/ui/js/services/module.js
+++ b/ui/js/services/module.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*/
+
define(['angular'], function (ng) {
'use strict';
return ng.module('app.services', []);
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/js/services/services.js
----------------------------------------------------------------------
diff --git a/ui/js/services/services.js b/ui/js/services/services.js
index 39b0df7..7096301 100644
--- a/ui/js/services/services.js
+++ b/ui/js/services/services.js
@@ -1,15 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
define(['./module'], function (services) {
'use strict';
//version
@@ -59,7 +62,8 @@ define(['./module'], function (services) {
metricsByOrg:'',
// organization:'/org.json',
// dashboard:'/dashboard.json',
- organization: BACKEND_SERVER + '/orgWithMetrics',
+
+ organization:BACKEND_SERVER + '/orgWithMetrics',
dashboard:ES_SERVER+'/griffin/accuracy/_search?pretty&filter_path=hits.hits._source',
metricsample: BACKEND_SERVER + API_ROOT_PATH + '/metrics/sample',
metricdownload: BACKEND_SERVER + API_ROOT_PATH + '/metrics/download',
@@ -70,6 +74,12 @@ define(['./module'], function (services) {
getModel: BACKEND_SERVER + '/measures/findByName',
enableModel: BACKEND_SERVER + API_ROOT_PATH + '/models/enableModel',
+ //Jobs
+ allJobs:BACKEND_SERVER + '/jobs/',
+ addJobs:BACKEND_SERVER+'/jobs/add/',
+ getMeasuresByOwner:BACKEND_SERVER+'/measures/owner/',
+ deleteJob:BACKEND_SERVER + '/jobs/groups/',
+// allJobs:'/jobs.json',
newAccuracyModel: BACKEND_SERVER + API_ROOT_PATH + '/models' ,
newValidityModel: BACKEND_SERVER + API_ROOT_PATH + '/models' ,
newAnomalyModel: BACKEND_SERVER + API_ROOT_PATH + '/models' ,
@@ -91,4 +101,4 @@ define(['./module'], function (services) {
return config;
});
-});
\ No newline at end of file
+});
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/login/login.js
----------------------------------------------------------------------
diff --git a/ui/login/login.js b/ui/login/login.js
index 11e5486..5435ca5 100644
--- a/ui/login/login.js
+++ b/ui/login/login.js
@@ -1,17 +1,18 @@
-/*
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
+/*-
+ * Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+ */
+
$(document).ready(function() {
$('input:eq(1)').keyup(function(evt){
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/dataassets/confirmation-dataasset.html
----------------------------------------------------------------------
diff --git a/ui/pages/dataassets/confirmation-dataasset.html b/ui/pages/dataassets/confirmation-dataasset.html
index 93f5145..1d019dc 100644
--- a/ui/pages/dataassets/confirmation-dataasset.html
+++ b/ui/pages/dataassets/confirmation-dataasset.html
@@ -1,17 +1,19 @@
<!--
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
<div class="row">
<h5 class="over-title margin-bottom-15">Basic information</h5>
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/dataassets/confirmation-delete-dataasset.html
----------------------------------------------------------------------
diff --git a/ui/pages/dataassets/confirmation-delete-dataasset.html b/ui/pages/dataassets/confirmation-delete-dataasset.html
index b397314..fd52ba8 100644
--- a/ui/pages/dataassets/confirmation-delete-dataasset.html
+++ b/ui/pages/dataassets/confirmation-delete-dataasset.html
@@ -1,17 +1,18 @@
<!--
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
<div class="row">
<h5 class="over-title margin-bottom-15">Basic information</h5>
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/dataassets/createdataasset.html
----------------------------------------------------------------------
diff --git a/ui/pages/dataassets/createdataasset.html b/ui/pages/dataassets/createdataasset.html
index 13bbb4d..df5d3c0 100644
--- a/ui/pages/dataassets/createdataasset.html
+++ b/ui/pages/dataassets/createdataasset.html
@@ -1,17 +1,18 @@
<!--
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
<div class="container-fluid">
<div class="row pageTitle">
<h5 class="over-title margin-bottom-15">Register Data Asset</h5>
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/dataassets/dataassets.html
----------------------------------------------------------------------
diff --git a/ui/pages/dataassets/dataassets.html b/ui/pages/dataassets/dataassets.html
index b26af13..79a3df2 100644
--- a/ui/pages/dataassets/dataassets.html
+++ b/ui/pages/dataassets/dataassets.html
@@ -1,17 +1,18 @@
<!--
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
<div class="bs-component" >
<p>
<!--<a class="btn btn-primary btn-o btn-wide" href="#/createdataasset"><i class="fa fa-plus"></i> Register Data Asset</a>-->
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/dataassets/editdataasset.html
----------------------------------------------------------------------
diff --git a/ui/pages/dataassets/editdataasset.html b/ui/pages/dataassets/editdataasset.html
index 8d22e91..724eb94 100644
--- a/ui/pages/dataassets/editdataasset.html
+++ b/ui/pages/dataassets/editdataasset.html
@@ -1,17 +1,18 @@
<!--
- Copyright (c) 2016 eBay Software Foundation.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
<div class="container-fluid">
<div class="row">
<h5 class="over-title margin-bottom-15">Edit Data Asset</h5>