[
https://issues.apache.org/jira/browse/AMBARI-19401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15804542#comment-15804542
]
Hadoop QA commented on AMBARI-19401:
------------------------------------
{color:green}+1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12845995/AMBARI-19401.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 7 new
or modified test files.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in
ambari-web.
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/9941//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/9941//console
This message is automatically generated.
> 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)