You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by GitBox <gi...@apache.org> on 2019/12/05 16:11:44 UTC

[GitHub] [brooklyn-ui] frogfather commented on a change in pull request #150: add time information to application data to allow ordering launch time

frogfather commented on a change in pull request #150: add time information to application data to allow ordering launch time
URL: https://github.com/apache/brooklyn-ui/pull/150#discussion_r354405739
 
 

 ##########
 File path: ui-modules/app-inspector/app/components/entity-tree/entity-tree.directive.js
 ##########
 @@ -43,19 +43,25 @@ export function entityTreeDirective() {
     return {
         restrict: 'E',
         template: entityTreeTemplate,
-        controller: ['$scope', '$state', 'applicationApi', 'iconService', 'brWebNotifications', controller],
+        controller: ['$scope', '$state', 'applicationApi', 'entityApi', 'iconService', 'brWebNotifications', controller],
         controllerAs: 'vm'
     };
 
-    function controller($scope, $state, applicationApi, iconService, brWebNotifications) {
+    function controller($scope, $state, applicationApi, entityApi, iconService, brWebNotifications) {
         $scope.$emit(HIDE_INTERSTITIAL_SPINNER_EVENT);
 
         let vm = this;
 
         let observers = [];
 
+        let timeData = [];
+
         applicationApi.applicationsTree().then((response)=> {
             vm.applications = response.data;
+            vm.applications.forEach(app => {
+                getTimeData(app);
 
 Review comment:
   The list returned from applicationsTree isn't in order - In process of this story I launched three empty software processes labelled 1,2,3 and the order returned by the api was not the same as the launch age. 

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


With regards,
Apache Git Services