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_r354799257
##########
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:
@tbouron Odd - before modifying any code the order returned was definitely
not the launch order.
The story was raised because it was noticed that the display order didn't
correspond to the launch order.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services