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

Richard Zang edited comment on AMBARI-19871 at 2/14/17 2:31 AM:
----------------------------------------------------------------

Found another problem caused by action parameter binding. Ember always invokes 
action with the parameter bind in the first rendering. Only action parameter 
from template is having this problem, direct text parameter binding is working 
fine. So, right now if you click cross button and open the pulldown version 
list, hover a version and click some action on its right popup. The following 
action will alway be invoked with the first version you hovered as it's action 
parameter. We did not have this problem on version pull down list or the 
horizontal version box list because we had separate version popup generated for 
each version box/item, yet now we are reusing a single box for all versions 
from pulldown list.

{code}
{{action doAction view.parentView.hoveredServiceVersion 
view.parentView.actionTypes.SWITCH target="view.parentView"}}
{code}


was (Author: rzang):
Found another problem caused by action parameter binding. Ember always invokes 
action with the parameter bind in the first rendering. Only action parameter 
from template is having this problem, direct text parameter binding is working 
fine. So, right now if you click cross button and open the pulldown version 
list. The following action will alway be invoked with the first version you 
hovered as it's action parameter. We did not have this problem on version pull 
down list or the horizontal version box list because we had separate version 
popup generated for each version box/item, yet now we are reusing a single box 
for all versions from pulldown list.

{code}
{{action doAction view.parentView.hoveredServiceVersion 
view.parentView.actionTypes.SWITCH target="view.parentView"}}
{code}

> Config version switch/compare/revert doesn't work
> -------------------------------------------------
>
>                 Key: AMBARI-19871
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19871
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.5.0
>            Reporter: Richard Zang
>            Assignee: Richard Zang
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19871_fix1.patch, AMBARI-19871.patch
>
>
> *Steps to reproduce:*
> 1. Go to any service with multiple config versions.
> 2. On the bottom left of the config history bar(the cross button), select an 
> older version and click View.
> *Actual result:*
> Now direct clicking on other config version block will not be able to switch 
> version. Only through the cross button can you switch to other version. 
> Compare configs also does not work, it always compare to the current version 
> and end up with empty diff.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to