[ 
https://issues.apache.org/jira/browse/AMBARI-19401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15805090#comment-15805090
 ] 

Hudson commented on AMBARI-19401:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #6377 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/6377/])
AMBARI-19401. Add new macros `ifThenElseByKeys` and write UT (onechiporenko: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=21975c9caac148684cbf96a90753e2946e2a5263])
* (edit) ambari-web/test/models/configs/theme/sub_section_test.js
* (edit) ambari-web/test/aliases/computed/filterBy.js
* (add) ambari-web/test/aliases/computed/ifThenElseByKeys.js
* (edit) ambari-web/app/models/configs/theme/tab.js
* (edit) ambari-web/app/utils/ember_computed.js
* (edit) ambari-web/test/models/configs/objects/service_config_property_test.js
* (edit) ambari-web/app/models/configs/objects/service_config_property.js
* (edit) ambari-web/test/models/configs/theme/tab_test.js
* (edit) ambari-web/test/utils/ember_computed_test.js
* (edit) ambari-web/test/init_computed_aliases.js


> Add new macros `ifThenElseByKeys` and write UT
> ----------------------------------------------
>
>                 Key: AMBARI-19401
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19401
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 3.0.0
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>             Fix For: 3.0.0
>
>         Attachments: AMBARI-19401.patch
>
>
> A computed property that returns value for trueKey property if dependent 
> value is true and falseKey-value otherwise
> {code:javascript}
> var o = Em.Object.create({
>   p1: true,
>   p2: 1,
>   p3: 2,
>   p4: Em.computed.ifThenElseByKeys('p1', 'p2', 'p3')
>  });
>  console.log(o.get('p4')); // 1
>  o.set('p1', false);
>  console.log(o.get('p4')); // 2
>  o.set('p3', 3);
>  console.log(o.get('p4')); // 3
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to