ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keta Patel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14574) multiple clicks on "Next" button causes skipping of steps while installing a cluster
Date Wed, 20 Jan 2016 02:02:39 GMT

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

Keta Patel commented on AMBARI-14574:
-------------------------------------

[~aantonenko], thank you for correcting me.
I have made use of 'connectOutlet' to reset 'nextBtnClickInProgress'. I also took the liberty
of resetting 'transitionInProgress' at this place instead of in Views for the individual steps.
I have uploaded 2 patches for this purpose. 
AMBARI-14574_Jan19_only_nextBtnClickInProgress.patch has changes only for 'nextBtnClickInProgress'.

AMBARI-14574_Jan19_with_transitionInProgress.patch has changes for both the properties.

Please let me know your feedback on them.

> multiple clicks on "Next" button causes skipping of steps while installing a cluster
> ------------------------------------------------------------------------------------
>
>                 Key: AMBARI-14574
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14574
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.1
>            Reporter: Keta Patel
>            Assignee: Keta Patel
>         Attachments: AMBARI-14574.patch, AMBARI-14574_Jan19_only_nextBtnClickInProgress.patch,
AMBARI-14574_Jan19_with_transitionInProgress.patch, attempt_1_controller.tiff, attempt_1_installer.tiff,
attempt_2_controller.tiff, attempt_2_installer.tiff, attempt_3_adding_check_for_step1.tiff,
attempt_3_removing_check_from_step3.tiff
>
>
> On installation wizard, multiple clicks on the "Next" button can cause skipping of steps.
The timing of the 2nd click decides if that click will be processed again or not. The following
JIRAs had the same issue:
> AMBARI-7195
> AMBARI-7315
> The fix for the above issues helps to resolve most part of the problem. But if the user
happened to click again at the point when the last callback function has just completed (and
thus, has made the "Next" button clickable again) but the next step has not yet completed
its rendering, then the 2nd click gets processed again. The "current step" was already updated
in the code to point to the next step, from the 1st click. So when this 2nd click calls the
"next" function in the router, the subsequent step of the "current step" gets set as the current
step. As a result we skip steps.



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

Mime
View raw message