Project

General

Profile

Bug #24486

Using has_many :through before the through association is defined interferes with scoped search

Added by Ondřej Pražák 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Search
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Scoped search complains when we use through association before it is defined:

Cannot have a has_many :through association 'Report#sources' which goes through 'Report#logs' before the through association is defined.

Associated revisions

Revision 6cb28481 (diff)
Added by Ondřej Pražák 5 months ago

Fixes #24486 - Define through association before using it (#5890)

History

#1 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5890 added

#2 Updated by Marek Hulán 5 months ago

  • Target version set to 1.20.0
  • Fixed in Releases 1.20.0 added

#3 Updated by Ondřej Pražák 5 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 2 months ago

  • Category set to Search

Also available in: Atom PDF