You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2023/06/20 02:05:08 UTC

[brooklyn-ui] 11/14: activites view updates list with same frequency as the deep model

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git

commit 3e5064ba830bfdc87befd85c1297e12b5222ca37
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Sun Jun 18 10:05:33 2023 +0100

    activites view updates list with same frequency as the deep model
    
    so they much more often appear to be in sync
---
 .../app/views/main/inspect/activities/detail/detail.controller.js     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui-modules/app-inspector/app/views/main/inspect/activities/detail/detail.controller.js b/ui-modules/app-inspector/app/views/main/inspect/activities/detail/detail.controller.js
index 172c9f53..75bcd9a8 100644
--- a/ui-modules/app-inspector/app/views/main/inspect/activities/detail/detail.controller.js
+++ b/ui-modules/app-inspector/app/views/main/inspect/activities/detail/detail.controller.js
@@ -328,6 +328,10 @@ function DetailController($scope, $state, $stateParams, $location, $log, $uibMod
         activityApi.activityChildren(activityId).then((response)=> {
             vm.model.activityChildren = processActivityChildren(response.data);
             vm.error = undefined;
+
+            // could improve by making just one call for children+deep, or combining the results;
+            // but for now just read them both frequently
+            if (!vm.model.activity.endTimeUtc || vm.model.activity.endTimeUtc<0) response.interval(1000);
             observers.push(response.subscribe((response)=> {
                 vm.model.activityChildren = processActivityChildren(response.data);
                 if (!vm.errorBasic) {