diff --git a/app/config/apiMapping.js b/app/config/apiMapping.js
index 870eeb84..9f639b3d 100644
--- a/app/config/apiMapping.js
+++ b/app/config/apiMapping.js
@@ -316,18 +316,18 @@ var apiMapping = {
'method': 'remove'
}
},
- Project: {
+ Product: {
all: {
'endpoint': '/private/queue',
- 'controller': 'projects'
+ 'controller': 'products'
},
getById: {
'endpoint': '/private/queue',
- 'controller': 'projects'
+ 'controller': 'products'
},
submitFeatureProposal: {
'endpoint': '/private/queue',
- 'controller': 'projects',
+ 'controller': 'products',
'method': 'feature'
}
}
diff --git a/app/constants/featureProposalState.js b/app/constants/featureProposalState.js
index 70128021..6e0d4973 100644
--- a/app/constants/featureProposalState.js
+++ b/app/constants/featureProposalState.js
@@ -12,16 +12,16 @@ app.constant("FeatureProposalState", {
SUBMITTED: {
gloss: "Submitted",
value: "SUBMITTED",
- summary: "Sent off to project management API."
+ summary: "Sent off to product management API."
},
ON_HOLD: {
gloss: "On Hold",
value: "ON_HOLD",
- summary: "Closed for voting, but not sent to project management API. \"There may be hope\"."
+ summary: "Closed for voting, but not sent to product management API. \"There may be hope\"."
},
REJECTED: {
gloss: "Rejected",
value: "REJECTED",
summary: "Closed for voting, terminal state."
}
-});
\ No newline at end of file
+});
diff --git a/app/controllers/featureProposalController.js b/app/controllers/featureProposalController.js
index 5cf79e3b..b83ee3c5 100644
--- a/app/controllers/featureProposalController.js
+++ b/app/controllers/featureProposalController.js
@@ -1,4 +1,4 @@
-app.controller('FeatureProposalController', function ($controller, $scope, Idea, IdeaState, FeatureProposalState, ProjectService) {
+app.controller('FeatureProposalController', function ($controller, $scope, Idea, IdeaState, FeatureProposalState, ProductService) {
angular.extend(this, $controller('AbstractIdeaController', {
$scope: $scope
@@ -67,7 +67,7 @@ app.controller('FeatureProposalController', function ($controller, $scope, Idea,
$scope.submitFeatureProposal = function (fp) {
$scope.submitting = true;
- ProjectService.submitFeatureProposal(fp).then(function (res) {
+ ProductService.submitFeatureProposal(fp).then(function (res) {
if (angular.fromJson(res.body).meta.status === 'SUCCESS') {
$scope.submitting = false;
$scope.resetFeatureProposals();
@@ -105,4 +105,4 @@ app.controller('FeatureProposalController', function ($controller, $scope, Idea,
$scope.openModal('#addFpModal');
};
-});
\ No newline at end of file
+});
diff --git a/app/controllers/serviceController.js b/app/controllers/serviceController.js
index 7a989249..74e1a7c3 100644
--- a/app/controllers/serviceController.js
+++ b/app/controllers/serviceController.js
@@ -1,4 +1,4 @@
-app.controller('ServiceController', function ($controller, $scope, ProjectService, Service, ServiceRepo) {
+app.controller('ServiceController', function ($controller, $scope, ProductService, Service, ServiceRepo) {
angular.extend(this, $controller('AbstractScheduleController', {
$scope: $scope
@@ -53,7 +53,7 @@ app.controller('ServiceController', function ($controller, $scope, ProjectServic
sortable: true
},
{
- gloss: 'Project',
+ gloss: 'Product',
filterable: false,
sortable: false
},
@@ -70,20 +70,20 @@ app.controller('ServiceController', function ($controller, $scope, ProjectServic
};
});
- ProjectService.getAll().then(function (projects) {
- $scope.projects = projects;
+ ProductService.getAll().then(function (products) {
+ $scope.products = products;
- $scope.getProject = function (service) {
- if (service.projectId && !service.project) {
- service.project = {};
- ProjectService.getById(service.projectId).then(function (project) {
+ $scope.getProduct = function (service) {
+ if (service.productId && !service.product) {
+ service.product = {};
+ ProductService.getById(service.productId).then(function (product) {
angular.extend(service, {
- project: project
+ product: product
});
});
- return service.project;
+ return service.product;
}
- return service.project;
+ return service.product;
};
});
@@ -177,4 +177,4 @@ app.controller('ServiceController', function ($controller, $scope, ProjectServic
toolbar: "undo redo | formatselect bold italic separator | alignleft aligncenter alignright | bullist numlist | forecolor backcolor"
};
-});
\ No newline at end of file
+});
diff --git a/app/index.html b/app/index.html
index 45f6e3bf..9ea3f043 100644
--- a/app/index.html
+++ b/app/index.html
@@ -256,7 +256,7 @@
Libraries Web Services Status
-
+
diff --git a/app/services/projectService.js b/app/services/productService.js
similarity index 69%
rename from app/services/projectService.js
rename to app/services/productService.js
index aa76f5fe..c82b948a 100644
--- a/app/services/projectService.js
+++ b/app/services/productService.js
@@ -1,11 +1,11 @@
-app.service('ProjectService', function ($q, WsApi) {
+app.service('ProductService', function ($q, WsApi) {
this.getAll = function (force) {
return $q(function (resolve, reject) {
- WsApi.fetch(apiMapping.Project.all).then(function (response) {
+ WsApi.fetch(apiMapping.Product.all).then(function (response) {
var apiRes = angular.fromJson(response.body);
if (apiRes.meta.status === 'SUCCESS') {
- resolve(apiRes.payload['ArrayList']);
+ resolve(apiRes.payload['ArrayList']);
} else {
reject();
}
@@ -14,14 +14,14 @@ app.service('ProjectService', function ($q, WsApi) {
};
this.getById = function (id) {
- angular.extend(apiMapping.Project.getById, {
+ angular.extend(apiMapping.Product.getById, {
'method': id
});
return $q(function (resolve, reject) {
- WsApi.fetch(apiMapping.Project.getById).then(function (response) {
+ WsApi.fetch(apiMapping.Product.getById).then(function (response) {
var apiRes = angular.fromJson(response.body);
if (apiRes.meta.status === 'SUCCESS') {
- resolve(apiRes.payload.Project);
+ resolve(apiRes.payload.Product);
} else {
reject();
}
@@ -30,11 +30,11 @@ app.service('ProjectService', function ($q, WsApi) {
};
this.submitFeatureProposal = function(fp) {
- angular.extend(apiMapping.Project.submitFeatureProposal, {
+ angular.extend(apiMapping.Product.submitFeatureProposal, {
'data': fp
});
return $q(function (resolve, reject) {
- WsApi.fetch(apiMapping.Project.submitFeatureProposal).then(function (response) {
+ WsApi.fetch(apiMapping.Product.submitFeatureProposal).then(function (response) {
var apiRes = angular.fromJson(response.body);
if (apiRes.meta.status === 'SUCCESS') {
resolve();
@@ -45,4 +45,4 @@ app.service('ProjectService', function ($q, WsApi) {
});
};
-});
\ No newline at end of file
+});
diff --git a/app/views/detail/service/featureProposals.html b/app/views/detail/service/featureProposals.html
index 310ac545..4ee5c3ab 100644
--- a/app/views/detail/service/featureProposals.html
+++ b/app/views/detail/service/featureProposals.html
@@ -1,6 +1,6 @@
-
+
@@ -40,4 +40,4 @@
-
\ No newline at end of file
+
diff --git a/app/views/management/services.html b/app/views/management/services.html
index 83c5a21d..58204501 100644
--- a/app/views/management/services.html
+++ b/app/views/management/services.html
@@ -21,7 +21,7 @@
{{service.isAuto}}
{{service.isPublic}}
{{service.onShortList}}
-
{{getProject(service).name}}
+
{{getProduct(service).name}}
@@ -40,4 +40,4 @@
-
\ No newline at end of file
+
diff --git a/app/views/modals/addServiceModal.html b/app/views/modals/addServiceModal.html
index 5aba3839..193307a3 100644
--- a/app/views/modals/addServiceModal.html
+++ b/app/views/modals/addServiceModal.html
@@ -17,11 +17,11 @@