You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2014/04/11 15:47:04 UTC
git commit: AMBARI-5440. isAccessAvailable function need to be
changed regarding changes in stackDependedComponents function (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 8ded461a3 -> 6a837985f
AMBARI-5440. isAccessAvailable function need to be changed regarding changes in stackDependedComponents function (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6a837985
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6a837985
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6a837985
Branch: refs/heads/trunk
Commit: 6a837985f4a467a709d36dd3a6d61cb6113bb0d6
Parents: 8ded461
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Apr 11 16:33:51 2014 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Apr 11 16:33:51 2014 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/main/admin.js | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/6a837985/ambari-web/app/controllers/main/admin.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin.js b/ambari-web/app/controllers/main/admin.js
index 8a2893b..cbb9d12 100644
--- a/ambari-web/app/controllers/main/admin.js
+++ b/ambari-web/app/controllers/main/admin.js
@@ -29,18 +29,13 @@ App.MainAdminController = Em.Controller.extend({
*/
isAccessAvailable: function() {
var dependencies = {
- services: ['YARN', 'TEZ'],
- components: ['APP_TIMELINE_SERVER']
+ services: ['YARN', 'TEZ']
};
var serviceNames = App.Service.find().mapProperty('serviceName')
.filter(function(serviceName) {
return dependencies.services.contains(serviceName);
});
- var componentNames = App.get('stackDependedComponents').mapProperty('componentName')
- .filter(function(componentName) {
- return dependencies.components.contains(componentName);
- });
- var isAppTimelineServerAvailable = App.HostComponent.find().findProperty('componentName','APP_TIMELINE_SERVER');
- return (dependencies.services.length == serviceNames.length && componentNames.length == 0 && isAppTimelineServerAvailable);
+ var isAppTimelineServerAvailable = App.HostComponent.find().findProperty('componentName','APP_TIMELINE_SERVER') ? true : false;
+ return (dependencies.services.length == serviceNames.length && isAppTimelineServerAvailable);
}.property()
});
\ No newline at end of file