You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2014/12/11 07:50:50 UTC
[02/18] stratos git commit: remove partitions from configurations
remove partitions from configurations
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/11807864
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/11807864
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/11807864
Branch: refs/heads/4.1.0-test
Commit: 118078644c8bc0e666a8370df6c5397c104fa613
Parents: 16ea8a5
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Wed Dec 10 14:02:11 2014 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
Committed: Wed Dec 10 14:02:11 2014 +0530
----------------------------------------------------------------------
.../console/configure_form.jag | 15 ---------------
.../controllers/configure/configure_requests.jag | 3 ---
.../console/controllers/rest/rest_calls.jag | 8 --------
3 files changed, 26 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/11807864/components/org.apache.stratos.manager.console/console/configure_form.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/configure_form.jag b/components/org.apache.stratos.manager.console/console/configure_form.jag
index 83e7892..cb56aca 100644
--- a/components/org.apache.stratos.manager.console/console/configure_form.jag
+++ b/components/org.apache.stratos.manager.console/console/configure_form.jag
@@ -69,21 +69,6 @@ if (elements.action != 'new' && isEdit) {
var formtype = elements.formtype;
switch (formtype) {
- case "partitions":
- list_data = util.RESTCalls.getPartitions();
- if (list_data.partition && list_data.partition.length === 0) {
- list_data = null;
- } else {
- formDataEdit = list_data.partition;
- for (specNumber in list_data.partition) {
- if (list_data.partition[specNumber].id == elements.action) {
- formDataEdit = list_data.partition[specNumber];
- }
-
- }
-
- }
- break;
case "autoscalingpolicies":
list_data = util.RESTCalls.getPolicyAutoScale();
http://git-wip-us.apache.org/repos/asf/stratos/blob/11807864/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag b/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
index 593a734..30b2263 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
+++ b/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
@@ -30,9 +30,6 @@ include('/controllers/login/validator.jag');
try {
switch (formtype) {
- case "partitions":
- formSubmit = util.RESTCalls.deployPartitionDefinition(formPayload);
- break;
case "autoscalingpolicies":
formSubmit = util.RESTCalls.deployAutoscalePolicyDefinition(formPayload);
break;
http://git-wip-us.apache.org/repos/asf/stratos/blob/11807864/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
index 331d3a8..5292321 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
+++ b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
@@ -71,10 +71,6 @@ RESTCalls = new function(){
return this.send("POST","/tenant/availability/" + tenantDomain,{});
};
- this.deployPartitionDefinition = function(partitionDefinition){
- return this.send("POST","/policy/deployment/partition",partitionDefinition);
- };
-
this.deployDeploymentPolicyDefinition = function(policyDefinition){
return this.send("POST","/policy/deployment",policyDefinition);
};
@@ -128,10 +124,6 @@ RESTCalls = new function(){
return this.sendReceive("GET","/" + cartridgeType + "/policy/deployment/",{});
};
- this.getPartitions = function(){
- return this.sendReceive("GET","/partition",{});
- };
-
this.getSingleTenantCartridgeInfo = function(cartridgeType){
return this.sendReceive("GET","/cartridge/available/info/" + cartridgeType,{});
};