UX: When in Debug Mode, AJAX Requests Resulting in Exceptions Are Added To The Flash

Bug #988063 reported by John Postlethwait
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Gabriel Hurley

Bug Description

This results in those errors being shown to the user (most likely - a developer) in our flash messages. The problem is that this is NOT a behavior real users would encounter in regard to these AJAX issues. As such it is hard to empathize with what the user is seeing/experiencing from these sort of issues as the UI/UX we get in debug mode differs from the UI/UX the real (non-debug mode) users get.

I propose we move to a model where the DEBUG setting, set on the back-end, if set to True, is exposed to the front-end, and if there is a AJAX error, we dump it in to console.log() (assuming it is available) for developers to still be able to see, use, and debug with, but NOT in a manner that has a different UX that what real (non-debug-mode) users would see.

Changed in horizon:
status: New → Confirmed
Changed in horizon:
importance: Undecided → Wishlist
Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
milestone: none → folsom-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/11383

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/11383
Committed: http://github.com/openstack/horizon/commit/3e98b5b05641410706bec478fd6ea15c9ce0fefe
Submitter: Jenkins
Branch: master

commit 3e98b5b05641410706bec478fd6ea15c9ce0fefe
Author: Gabriel Hurley <email address hidden>
Date: Tue Aug 14 18:36:52 2012 -0700

    Adds javascript console logging for debug mode.

    Fixes bug 988063.

    Change-Id: I8b97d9259f69c069733b95d3f362e65a68ccdd7d

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-3 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.