[
https://issues.apache.org/jira/browse/AMBARI-15515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208310#comment-15208310
]
Hudson commented on AMBARI-15515:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #4532 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4532/])
AMBARI-15515. Improve Em.computed.getByKey (onechiporenko) (onechiporenko:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3ae91d255e717055dcc66ed514de2eec67f71f94])
* ambari-web/test/models/alerts/alert_definition_test.js
* ambari-web/test/models/host_test.js
* ambari-web/test/aliases/computed/getByKey.js
* ambari-web/test/models/service_test.js
* ambari-web/test/models/service/flume_test.js
* ambari-web/app/utils/ember_computed.js
* ambari-web/test/models/host_component_test.js
* ambari-web/app/models/host.js
* ambari-web/app/models/service/flume.js
* ambari-web/app/models/service.js
* ambari-web/test/models/alerts/alert_instance_test.js
* ambari-web/app/models/host_component.js
* ambari-web/test/utils/ember_computed_test.js
* ambari-web/app/models/hosts.js
* ambari-web/test/models/hosts_test.js
> Improve Em.computed.getByKey
> ----------------------------
>
> Key: AMBARI-15515
> URL: https://issues.apache.org/jira/browse/AMBARI-15515
> Project: Ambari
> Issue Type: Task
> Components: ambari-web
> Affects Versions: 2.4.0
> Reporter: Oleg Nechiporenko
> Assignee: Oleg Nechiporenko
> Fix For: 2.4.0
>
> Attachments: AMBARI-15515.patch
>
>
> * Should handle default value when there is no key in the object
> {noformat}
> var o = Em.Object.create({
> p1: {a: 1, b: 2, c: 3},
> p2: 'd',
> p3: Em.computed.getByKey('p1', 'p2', 100500)
> });
> console.log(o.get('p3')); // 100500 - default value is returned, because
> there is no key `d` in the `p1`
> {noformat}
> * {{App.TestAliases.testAsComputedGetByKey}} should supports checking default
> value and should be able to process provided map instead of traversing throw
> tested object
> * {{App.TestAliases.testAsComputedGetByKey}} should use `to.be.eql` instead
> of `to.be.equal` (`equal` doesn't work for objects, arrays etc)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)