← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1555415] Re: Session timeout from AngularJS pages doesn't give user feedback

 

Reviewed:  https://review.openstack.org/459908
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2415d5ea59a465881e10ec5a02da5d52b64d8a58
Submitter: Zuul
Branch:    master

commit 2415d5ea59a465881e10ec5a02da5d52b64d8a58
Author: gugl <gloria.fang.gu@xxxxxxxx>
Date:   Tue Apr 25 18:14:57 2017 -0700

    Added error msg when gets redirect to login page
    
    This checkin includes the followings:
    
    1.Added an error toast message when user gets
    unauthorized 401 or 404 error during operation.
    
    2.When the modal dialog shows up, it also adds an error
    message at the top of the dialog.
    
    3.Also added some unit tests to let the coverage passes
    the threshold.
    
    Change-Id: I5e0962937932a21565d374561f09f98013063a4f
    Closes-bug: #1555415


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1555415

Title:
  Session timeout from AngularJS pages doesn't give user feedback

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  At the moment we have very high-level code in the config() of
  framework.module.js which redirects the user to the login page if an
  API action is unauthorised (session timeout). There's no visible
  feedback to the user at this point though.

  I think we need to move the addition of that handler to a run() so
  that the horizon.framework.widgets.toast.service is available and we
  can throw up a toast telling the user that they've been logged out. We
  can't include it in the config() because at that time the toast
  service hasn't been instantiated.

  You can see this in action by loading up the swift UI and forcing a
  session invalidation, then clicking on some action like viewing a
  container contents.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1555415/+subscriptions


References