[
https://issues.apache.org/jira/browse/SCB-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594949#comment-16594949
]
ASF GitHub Bot commented on SCB-807:
------------------------------------
asifdxtreme closed pull request #428: [SCB-807]Limit the topology view to only
100 microservices.
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/428
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/frontend/Readme.md b/frontend/Readme.md
index 77e6f85f..dde0dc71 100644
--- a/frontend/Readme.md
+++ b/frontend/Readme.md
@@ -39,7 +39,17 @@ bower install
cd ..
-go run main.go
+go build
+
+```
+Windows:
+```
+frontend.exe
+```
+
+Linux:
+```sh
+./frontend
```
This will bring up the Service-Center UI on
[http://127.0.0.1:30103](http://127.0.0.1:30103).
If you want to change the listening ip/port, you can modify it in the
configuration file (service-center/frontend/conf/app.conf : frontend_host_ip,
frontend_host_port).
diff --git a/frontend/app/scripts/modules/topology/controllers/topologyCtrl.js
b/frontend/app/scripts/modules/topology/controllers/topologyCtrl.js
index d7da9952..b7b7624a 100644
--- a/frontend/app/scripts/modules/topology/controllers/topologyCtrl.js
+++ b/frontend/app/scripts/modules/topology/controllers/topologyCtrl.js
@@ -30,15 +30,18 @@ angular.module('serviceCenter.topology', [])
httpService.apiRequest(url, method).then(function(response) {
$(".loader").hide();
if (response && response.data &&
response.data.allServicesDetail && response.data.allServicesDetail.length > 0) {
- $scope.allAppId.push("All");
- $scope.appId = appId ? appId : "All";
$scope.allServicesDetail = response.data.allServicesDetail;
-
angular.forEach(response.data.allServicesDetail,
function(service) {
if
(!$scope.allAppId.includes(service.microService.appId) &&
service.microService.serviceName.toLowerCase() !== 'servicecenter') {
$scope.allAppId.push(service.microService.appId);
}
});
+ if ($scope.allServicesDetail.length > 100){
+ $scope.appId = $scope.allAppId[0];
+ } else {
+ $scope.allAppId.push("All");
+ $scope.appId = appId ? appId : "All";
+ }
if ($scope.appId === "All") {
$scope.microServices = [];
----------------------------------------------------------------
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:
[email protected]
> Limit the topology view to only 100 microservices.
> ---------------------------------------------------
>
> Key: SCB-807
> URL: https://issues.apache.org/jira/browse/SCB-807
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Service-Center
> Affects Versions: service-center-1.1.0
> Reporter: xiaoyimei
> Assignee: xiaoyimei
> Priority: Minor
>
> If the microservices count is more than 100 that limit the display of
> Topology view and give user option to select some particular AppId to view
> the topology
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)