← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1317124] [NEW] Datatables without filters are failing to update

 

Public bug reported:

If a datatable does not have a filter on it, dynamic updating of the
content is failing

It looks like the first update is attemptd when the page loads, but then in the javascript console, the following appears...
TypeError: horizon.datatables.qs[$table.attr(...)] is undefined

That is causing further updates to not be attempted.

It looks like horizon.tables.js has the following code.

             // Reset quicksearch's data cache.
                horizon.datatables.qs[$table.attr('id')].cache();

I think it will work properly if we add the following check
             // Reset quicksearch's data cache if necessary
              if(horizon.datatables.qs[$table.attr('id')] != undefined) {
                horizon.datatables.qs[$table.attr('id')].cache();
              }

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  Datatables without filters are failing to update

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  If a datatable does not have a filter on it, dynamic updating of the
  content is failing

  It looks like the first update is attemptd when the page loads, but then in the javascript console, the following appears...
  TypeError: horizon.datatables.qs[$table.attr(...)] is undefined

  That is causing further updates to not be attempted.

  It looks like horizon.tables.js has the following code.

               // Reset quicksearch's data cache.
                  horizon.datatables.qs[$table.attr('id')].cache();

  I think it will work properly if we add the following check
               // Reset quicksearch's data cache if necessary
                if(horizon.datatables.qs[$table.attr('id')] != undefined) {
                  horizon.datatables.qs[$table.attr('id')].cache();
                }

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


Follow ups

References