Bug #48870 issues with disabling/unscheduling of Heat Chart rules
Submitted: 18 Nov 2009 16:00 Modified: 19 Nov 2009 11:35
Reporter: Marcos Palacios Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S3 (Non-critical)
Version:2.1.1.1108 OS:Any
Assigned to: Josh Sled CPU Architecture:Any

[18 Nov 2009 16:00] Marcos Palacios
Description:
When disabling/unscheduling Heat Chart rules, the following issues happen:
(1) for 'disable', the page shows ALL 14 rules as 'disabled' after doing the 'disable' action even though 3 rules are not disabled; if you hit refresh, then you see those 3 as 'enabled'. (The resulting page for 'unschedule' is fine.)
(2) for 'unschedule', there is NO fading white cloud with rule counts. (The white cloud for 'disable' is fine.)

These are not issues in 2.2.0 since the UI has ajax features.

How to repeat:
(1)
- install the monitor and agent
- go to Advisors page
- explode the Heat Chart rules (to see all 14)
- select all the Heat Chart rules
- click the 'disable' button above the 'Scheduled Advisors' area
- at the popup, click the 'disable' button
- observe yellow popup with 3 appropriate error messages
- click "X" on yellow popup
- observe ALL 14 rules show as 'disabled'
- click browser's refresh/reload button
- observe that now 3 rules show as 'enabled'
(2)
- select all the Heat Chart rules
- click the 'unschedule' button above the 'Scheduled Advisors' area
- at the popup, click the 'unschedule' button
- observe yellow popup with 3 appropriate error messages
- click "X" on yellow popup
- observe there is no fading white cloud

Suggested fix:
- add refresh after disabling
- reinstate the fading white cloud
[19 Nov 2009 11:35] Tony Bedford
An entry was added to the 2.2.0 changelog:

        When disabling or unscheduling Heat Chart rules, the following
        issues occurred:

            For the disable operation, the resulting page showed all
            rules as disabled, even though three rules were not
            disabled. However, if the page was refreshed, those three
            rules were correctly displayed as enabled.

            For the unschedule operation, there was no fading white
            cloud with rule counts.