Project

General

Profile

Bug #25730

Organization seed assumes all relationships are many_to_many

Added by Justin Sherrill 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

This pr: https://github.com/theforeman/foreman/pull/6283
assumes that all relationships are many to many with this line:

https://github.com/theforeman/foreman/blob/develop/db/seeds.d/050-taxonomies.rb#L13

However, katello (and possibly other plugins?) has a 'has_one' association.


Related issues

Related to Foreman - Refactor #24801: Migrate all objects to default taxonomies if taxonomies disabledClosed

Associated revisions

Revision fb58938e (diff)
Added by Justin Sherrill 3 months ago

Fixes #25730 - only assign many to many associations

for taxonomies during db seed

History

#1 Updated by Justin Sherrill 3 months ago

  • Related to Refactor #24801: Migrate all objects to default taxonomies if taxonomies disabled added

#2 Updated by The Foreman Bot 3 months ago

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

#3 Updated by Tomer Brisker 3 months ago

  • Fixed in Releases 1.21.0 added

#4 Updated by Justin Sherrill 3 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 3 months ago

  • Category set to Organizations and Locations

Also available in: Atom PDF