Project

General

Profile

Bug #26033

Registered Hosts report: "Cannot eagerly load the polymorphic association :owner"

Added by Marek Hulán over 1 year ago. Updated 5 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1673898

Description of problem:
When using any filter when generating the Registered Hosts report, the following red pop-up message is shown together with attached traceback:

"Cannot eagerly load the polymorphic association :owner".

This may or may not have been caused by fixing bug 1655628. This is a regression
because filtering worked in this report in some previous snap.

Version-Release number of selected component (if applicable):
Reproduced on Sat 6.5 snap 14.

How reproducible:
Deterministic

Steps to Reproduce:
1. Monitor -> Report Templates -> generate Registered Hosts report -> enter some filter -> Submit

Actual results:
Error message, traceback, nothing generated

Expected results:
Report generated without errors


Related issues

Blocked by Foreman - Feature #26162: Support preloading for load_hosts macroClosed
Copied to Foreman - Bug #26467: Registered Hosts report: free text form for host search does not workClosed

Associated revisions

Revision 0446ac84 (diff)
Added by Ondřej Pražák over 1 year ago

Fixes #26033 - Do not eager load polymorphic owner (#558)

History

#1 Updated by Ondřej Pražák over 1 year ago

  • Blocked by Feature #26162: Support preloading for load_hosts macro added

#2 Updated by The Foreman Bot over 1 year ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/community-templates/pull/558 added

#3 Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Marek Hulán over 1 year ago

  • Copied to Bug #26467: Registered Hosts report: free text form for host search does not work added

#5 Updated by Tomer Brisker 5 months ago

  • Category changed from Statistics to Reporting

Also available in: Atom PDF