Project

General

Profile

Bug #31496

Javascript error on Products page 'self.table.allSelected is not a function'

Added by Eric Helms 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

E       AssertionError: Error messages with log level SEVERE in browser console
E       assert ['https://192...jection: {}"'] == []
E         Left contains one more item: 'https://192.168.122.58/assets/bastion/bastion-93eff2becb35d171d82e6d88d3a6ab8cbc324ab4de03f83baa7797d09691cdd8.js 323...astion-93eff2becb35d171d82e6d88d3a6ab8cbc324ab4de03f83baa7797d09691cdd8.js:30241:9) "Possibly unhandled rejection: {}"'
E         Full diff:
E           [
E         -  ,
E         +  'https://192.168.122.58/assets/bastion/bastion-93eff2becb35d171d82e6d88d3a6ab8cbc324ab4de03f83baa7797d09691cdd8.js '
E         +  '32302:40 TypeError: self.table.allSelected is not a function\n'
E         +  '    at Object.Nutupane.self.table.selectAllResults '...
E         
E         ...Full output truncated (20 lines hidden), use '-vv' to show

Associated revisions

Revision 6fca2a2c (diff)
Added by Eric Helms 11 months ago

Fixes #31496: Fix error when allSelected() not yet defined

When assets are compiled, intermittently during the loading of
the products page, the self.table.allSelected() function is not
yet defined when this segment of code is first encountered. This
is a result of the products page calling refresh after disabling
load rather than calling load explicitly to enable repo discovery
button.

History

#1 Updated by The Foreman Bot 11 months ago

  • Assignee set to Eric Helms
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9075 added

#2 Updated by The Foreman Bot 11 months ago

  • Fixed in Releases Katello 4.0.0 added

#3 Updated by Eric Helms 11 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Samir Jha 10 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.0.0

Also available in: Atom PDF