jathanasiou commented on a change in pull request #247:
URL: https://github.com/apache/brooklyn-ui/pull/247#discussion_r669400445



##########
File path: 
ui-modules/app-inspector/app/components/providers/entity-api.provider.js
##########
@@ -78,8 +78,9 @@ function EntityApi($http, $q) {
     function getEntityConfigInfo(applicationId, entityId) {
         return $http.get('/v1/applications/' + applicationId + '/entities/' + 
entityId + '/config', {observable: true, ignoreLoadingBar: true});
     }
-    function getEntityConfigState(applicationId, entityId) {
-        return $http.get('/v1/applications/' + applicationId + '/entities/' + 
entityId + '/config/current-state', {observable: true, ignoreLoadingBar: true});
+    function getEntityConfigState(applicationId, entityId, skipResolution) {
+        skipResolution = skipResolution ? true : false;
+        return $http.get('/v1/applications/' + applicationId + '/entities/' + 
entityId + 
'/config/current-state?suppressSecrets=true&skipReslution='+skipResolution, 
{observable: true, ignoreLoadingBar: true});

Review comment:
       This is equivalent to:
   ```
   function getEntityConfigState(applicationId, entityId, skipResolution) {
           return 
$http.get(`/v1/applications/${applicationId}/entities/${entityId}/config/current-state?suppressSecrets=true&skipReslution=${!!skipResolution}`,
 { observable: true, ignoreLoadingBar: true });
   }
   ```




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to