You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/01/19 14:36:33 UTC

[3/5] stratos git commit: add repository update to application schema

add repository update to application schema


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/b72dcd93
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/b72dcd93
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/b72dcd93

Branch: refs/heads/master
Commit: b72dcd93697f6d8abf6bd7ae357c7c25ec4c4d8e
Parents: b042d78
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Mon Jan 19 16:00:07 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Mon Jan 19 19:06:20 2015 +0530

----------------------------------------------------------------------
 .../theme0/js/custom/applications-editor.js     | 66 ++++++++++++--------
 1 file changed, 39 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/b72dcd93/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
index 3c658fe..30a379c 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-editor.js
@@ -459,60 +459,69 @@ var cartridgeBlockTemplate = {
             "type":"string",
             "id": "root/type",
             "default": "name",
+            "title": "Cartridge Type: ",
             "required":false
         },
         "cartridgeMax": {
             "type":"number",
             "id": "root/cartridgeMax",
             "default":2,
+            "title":"Cartridge Max",
             "required":false
         },
         "cartridgeMin": {
             "type":"number",
             "id": "root/cartridgeMin",
+            "title":"Cartridge Min",
             "default":1,
             "required":false
         },
         "subscribableInfo": {
             "type":"object",
             "id": "root/subscribableInfo",
+            "title":"Subscribable Info: ",
             "required":false,
             "properties":{
                 "alias": {
                     "type":"string",
                     "id": "root/subscribableInfo/alias",
                     "default": "alias2",
+                    "title":"Alias: ",
                     "required":false
                 },
                 "autoscalingPolicy": {
                     "type":"string",
                     "id": "root/subscribableInfo/autoscalingPolicy",
                     "default": "autoscale_policy_1",
+                    "title":"Auto-scaling Policy: ",
                     "required":false
                 },
-                "privateRepo": {
-                    "type":"string",
-                    "id": "root/subscribableInfo/privateRepo",
-                    "default": "true",
-                    "required":false
-                },
-                "repoPassword": {
-                    "type":"string",
-                    "id": "root/subscribableInfo/repoPassword",
-                    "default": "password",
-                    "required":false
-                },
-                "repoURL": {
-                    "type":"string",
-                    "id": "root/subscribableInfo/repoURL",
-                    "default": "http://xxx:10080/git/default.git",
-                    "required":false
-                },
-                "repoUsername": {
-                    "type":"string",
-                    "id": "root/subscribableInfo/repoUsername",
-                    "default": "user",
-                    "required":false
+                "artifactRepository": {
+                    "id": "root/subscribableInfo/artifactRepository",
+                    "type": "object",
+                    "properties": {
+                        "privateRepo": {
+                            "id": "root/subscribableInfo/artifactRepository/privateRepo",
+                            "title":"Private Repository: ",
+                            "type": "boolean"
+                        },
+                        "repoUrl": {
+                            "id": "root/subscribableInfo/artifactRepository/repoUrl",
+                            "title":"Repository URL: ",
+                            "type": "string"
+                        },
+                        "repoUsername": {
+                            "id": "root/subscribableInfo/artifactRepository/repoUsername",
+                            "title":"Repository Username: ",
+                            "type": "string"
+                        },
+                        "repoPassword": {
+                            "id": "root/subscribableInfo/artifactRepository/repoPassword",
+                            "title":"Repository Password: ",
+                            "type": "string",
+                            "format":"password"
+                        }
+                    }
                 }
             }
         }
@@ -526,10 +535,13 @@ var cartridgeBlockDefault = {
     "subscribableInfo":{
         "alias":"alias2",
         "autoscalingPolicy":"autoscale_policy_1",
-        "privateRepo":"true",
-        "repoPassword":"password",
-        "repoURL":"http://xxx:10080/git/default.git",
-        "repoUsername":"user"
+        "artifactRepository":{
+            "privateRepo":"true",
+            "repoUrl":"http://xxx:10080/git/default.git",
+            "repoUsername":"user",
+            "repoPassword":"password",
+        }
+
     }
 };