Project

General

Profile

Feature #27190

graphql: add plugin DSL for registering plugin fields

Added by Ondřej Pražák 4 months ago. Updated 3 months ago.

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

Description

We need a way how to extend query type with queries from plugins. The intuitive approach of using a concern will not work, because code in engine.rb gets executed on application start. That causes problems when plugin migrations are down, because graphql tries to call active record, but the tables for new types have not yet been created.


Related issues

Related to Foreman - Feature #26541: graphql: add plugin DSLClosed
Related to Foreman - Bug #27500: rake db:migrate fails on missing relation when registering fields from pluginsClosed

Associated revisions

Revision 51be8709 (diff)
Added by Ondřej Pražák 3 months ago

Fixes #27190 - Add DSL for registering plugin fields

History

#1 Updated by Ondřej Pražák 4 months ago

#2 Updated by The Foreman Bot 4 months ago

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

#3 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 1.23.0 added

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

  • Status changed from Ready For Testing to Closed

#5 Updated by Amit Upadhye 3 months ago

  • Category set to API

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

  • Related to Bug #27500: rake db:migrate fails on missing relation when registering fields from plugins added

Also available in: Atom PDF