Project

General

Profile

Actions

Bug #27500

closed

rake db:migrate fails on missing relation when registering fields from plugins

Added by Ondřej Pražák almost 5 years ago. Updated over 4 years ago.

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

Description

Steps to reproduce:

1) have a foreman where db:create and db:migrate was already executed
2) add a plugin registering graphql fields with plugin dsl, bundle
3) run db:migrate

The cause is that `field` methods are called within the type class immediately when the class constant is used, so we need to use strings for registration and constantize later.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #27190: graphql: add plugin DSL for registering plugin fieldsClosedOndřej PražákActions
Actions #1

Updated by Ondřej Pražák almost 5 years ago

  • Related to Feature #27190: graphql: add plugin DSL for registering plugin fields added
Actions #2

Updated by The Foreman Bot almost 5 years ago

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

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 1.24.0 added
Actions #4

Updated by Ondřej Pražák over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Amit Upadhye over 4 years ago

  • Category set to API
Actions

Also available in: Atom PDF