Bug 905903

Summary: Ajax notifications for success of actions should disappear after a set amount of time rather than require you to manually close
Product: Red Hat OpenStack Reporter: Perry Myers <pmyers>
Component: python-django-horizonAssignee: Julie Pichon <jpichon>
Status: CLOSED ERRATA QA Contact: Nir Magnezi <nmagnezi>
Severity: low Docs Contact:
Priority: medium    
Version: 3.0CC: ajeain, aortega, athomas, jpichon, mrunge
Target Milestone: snapshot1Keywords: Improvement, Triaged
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-horizon-2013.1.1-1.el6ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-29 15:04:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Perry Myers 2013-01-30 12:44:17 UTC
Description of problem:
The ajax notifications that pop up on the top left corner of Horizon when you take an action tend to stick around forever until you close them manually which is a bit annoying.

Having a timeout (say 5 seconds) would seem to be better user experience wise

Comment 1 Yaniv Kaul 2013-01-30 13:40:13 UTC
I wouldn't want failures to disappear so fast.
For example, right now for some elusive reason, my horizon can't fetch
quotas. I get the red dialog every time.
But I think it's OK - I don't need the green success to remain, but
errors should be explicitly dismissed.

Success messages are fine. Changed title accordingly.

Comment 2 Matthias Runge 2013-05-15 07:54:34 UTC
I think, we need some docs for this.

It is already included in Grizzly, the behaviour is configurable:
(in local_settings.py, i.e. /etc/openstack-dashboard/local_settings)
HORIZON_CONFIG = {
...
    'auto_fade_alerts': {
        'delay': 3000,
        'fade_duration': 1500,
        'types': ['alert-success', 'alert-info']
    },
...
}

Comment 4 Nir Magnezi 2013-05-22 12:34:27 UTC
Verified NVR: python-django-horizon-2013.1.1-1.el6ost.noarch

Tested both Error and success:

ERROR: 
======
Exceeded my tenant quota, the error did not disappear till I closed it myself. 

Error: Quota exceeded for cores: Requested 4, but already used 17 of 20 cores (HTTP 413) (Request-ID: req-0a4f2474-407e-4561-adda-e9b9d38fc9d4)

Error: Unable to launch instance named "test".


Success:
========
Launched an instance, The pop-up disappeared after 5 seconds

Success: Launched instance named "test".

Comment 6 errata-xmlrpc 2013-05-29 15:04:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0878.html