Project

General

Profile

Bug #29504

DB creation fails if the plugin extends graphql types

Added by Kamil Szubrycht 4 months ago. Updated 4 months ago.

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

Description

If the plugin extends graphql types, eg. https://github.com/theforeman/foreman_omaha/blob/ed679561e9bbc3d02e4f2e813ef1b3d14136b80b/lib/foreman_omaha/engine.rb#L100-L103, bundle exec rake db:create command fails with error message:

ActiveRecord::NoDatabaseError: FATAL:  database "foreman_development" does not exist

Associated revisions

Revision 1f9a13dd (diff)
Added by Kamil Szubrycht 4 months ago

Fixes #29504 - Skip plugin registration if the db is not ready

History

#1 Updated by The Foreman Bot 4 months ago

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

#2 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 2.1.0 added

#3 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF