ngReorg broke modals along the way

Bug #1459115 reported by Richard Jones
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Unassigned

Bug Description

The horizon modal has been broken along the way during the ngReorg refactoring. The error appears in the Javascript console when the user navigates to almost any page that pops up the modal spinner (switching between Project Overview and Admin Overview, for example).

The error is:

     Uncaught TypeError: Cannot read property 'modal' of undefined
       horizon.modals.modal_spinner @ (some location in compressed js)
       ...

It'll be recommended to turn off compression to figure out what's actually going on.

Changed in horizon:
milestone: none → liberty-1
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

You can disable compression with the COMPRESS_ENABLED variable in openstack_dashboard/settings.py, for anyone looking.

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

From Chrome:

Uncaught TypeError: Cannot read property 'modal' of undefinedhorizon.modals.modal_spinner @ horizon.modals.js:58
(anonymous function) @ horizon.accordion_nav.js:80
jQuery.event.dispatch @ jquery.js:5095
jQuery.event.add.elemData.handle @ jquery.js:4766

Changed in horizon:
assignee: nobody → Rob Cresswell (robcresswell)
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

The issue is here:
https://github.com/openstack/horizon/blob/master/horizon/static/dashboard-app/dashboard-app.module.js

At L30 horizon.conf is set to the dashboard.conf. However, that config doesn't contain the spinner_options; they are only in framework.conf.

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/185927

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/185927
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2556b4a9b3709b76017d2e551fe54412681ec599
Submitter: Jenkins
Branch: master

commit 2556b4a9b3709b76017d2e551fe54412681ec599
Author: Rob Cresswell <email address hidden>
Date: Wed May 27 11:46:32 2015 +0100

    Fix modals by making spinner_options accessible

    This patch makes the spinner_options variable accessible to the modal functions
    again.

    Change-Id: I84b6c7e5813d5818b18675e385214feda178c482
    Closes-Bug: 1459115

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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