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 2022/07/15 10:57:58 UTC

[brooklyn-ui] branch master updated: previously stream widget got confused if log contents were valid json; now it always treats them as a string

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


The following commit(s) were added to refs/heads/master by this push:
     new fd0369a2 previously stream widget got confused if log contents were valid json; now it always treats them as a string
     new e08328c3 Merge branch 'master' of https://gitbox.apache.org/repos/asf/brooklyn-ui
fd0369a2 is described below

commit fd0369a287cb36993998c0806b6b64c5fc8dd8ea
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Fri Jul 15 11:56:34 2022 +0100

    previously stream widget got confused if log contents were valid json; now it always treats them as a string
---
 ui-modules/app-inspector/app/components/stream/stream.directive.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui-modules/app-inspector/app/components/stream/stream.directive.js b/ui-modules/app-inspector/app/components/stream/stream.directive.js
index 6d17d244..60fe5495 100644
--- a/ui-modules/app-inspector/app/components/stream/stream.directive.js
+++ b/ui-modules/app-inspector/app/components/stream/stream.directive.js
@@ -123,7 +123,7 @@ export function streamDirective() {
                 }
 
                 // 2. Update the stream data holder in this directive.
-                $scope.stream = response.data;
+                $scope.stream = typeof response.data === 'object' ? JSON.stringify(response.data, null, 2) : response.data;
 
                 // Check if to drop filters, because of `ng-repeat` performance limits.
                 if ($scope.cliXmlIdentified && !$scope.cliXml && !$scope.filteredStream.length && $scope.stream.length > 99999) {