[ 
https://issues.apache.org/jira/browse/SCB-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471355#comment-16471355
 ] 

ASF GitHub Bot commented on SCB-491:
------------------------------------

little-cui commented on a change in pull request #348: SCB-491 Add the Test 
Schema Feature
URL: 
https://github.com/apache/incubator-servicecomb-service-center/pull/348#discussion_r187500146
 
 

 ##########
 File path: frontend/app/scripts/modules/serviceCenter/controllers/schemaCtrl.js
 ##########
 @@ -207,7 +211,13 @@ angular.module('serviceCenter.sc')
                                    $scope.selectedInstance =  instances[0] || 
'';
 
                                    $scope.addresses = addresses[0];
-                                   $scope.selectedAddress = addresses[0][0] || 
'';
+                                   angular.forEach($scope.addresses, 
function(addr){
+                                       if(addr.indexOf("rest") >= 0){
+                            $scope.selectedAddress = addr;
+                        }
+                                       });
+                    $scope.selectedAddress = ($scope.selectedAddress == '') ? 
addresses[0][0] : $scope.selectedAddress;
+                    $scope.disableNext = 
$scope.selectedAddress.indexOf("highway") >= 0 ? true : false;
 
 Review comment:
   please do json format the code

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Test Schema function of Service Center is not available
> -------------------------------------------------------
>
>                 Key: SCB-491
>                 URL: https://issues.apache.org/jira/browse/SCB-491
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Service-Center
>    Affects Versions: service-center-1.0.0-m1
>            Reporter: mabin
>            Assignee: Mohammad Asif Siddiqui
>            Priority: Major
>             Fix For: service-center-1.0.0-m2
>
>         Attachments: bmi_test_schema.png
>
>
> Service Center version: 1.0.0-m1
> Test case: 
> https://github.com/apache/incubator-servicecomb-java-chassis/tree/master/samples/bmi
> !bmi_test_schema.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to