ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rle...@apache.org
Subject [21/50] [abbrv] ambari git commit: AMBARI-22081. UI is crashing while upgrading when services array is not present (alexantonenko)
Date Mon, 02 Oct 2017 20:39:32 GMT
AMBARI-22081. UI is crashing while upgrading when services array is not present (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c7c62c09
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c7c62c09
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c7c62c09

Branch: refs/heads/branch-feature-AMBARI-20859
Commit: c7c62c0974331790ad380799f2f59cd2d92ccd0a
Parents: b10b6fd
Author: Alex Antonenko <aantonenko@hortonworks.com>
Authored: Thu Sep 28 15:18:19 2017 +0300
Committer: Alex Antonenko <aantonenko@hortonworks.com>
Committed: Thu Sep 28 15:18:19 2017 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/repository_version_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c7c62c09/ambari-web/app/mappers/repository_version_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/repository_version_mapper.js b/ambari-web/app/mappers/repository_version_mapper.js
index 61056ae..3838d34 100644
--- a/ambari-web/app/mappers/repository_version_mapper.js
+++ b/ambari-web/app/mappers/repository_version_mapper.js
@@ -122,7 +122,7 @@ App.repoVersionMapper = App.QuickDataMapper.create({
                 name: service.name,
                 display_name: service.display_name,
                 latest_version: service.versions[0] ? service.versions[0] : '',
-                is_available: item[repoVersionsKey].services.someProperty('name', service.name),
+                is_available: item[repoVersionsKey].services ? item[repoVersionsKey].services.someProperty(
'name', service.name) : true,
                 is_upgradable: json.stackServices ? json.stackServices[service.name] &&
json.stackServices[service.name].upgrade : true
               };
               resultService.push(serviceObj);


Mime
View raw message