Project

General

Profile

Bug #29523

Tracker #28633: Update GraphQL to work with Rails 6

Graphql association preload doesn't work with Rails 6

Added by Ondřej Ezr 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
-
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Rails 6 is changing behaviour of preloading associations.
It no longer assigns customly preloaded associations to the record itself and thus such associations doesn't seem preloaded.
Preloaded records are then ignored on subsequent calls to record.<association_name>.

We use custom preloading, so we need to update accordingly.

Associated revisions

Revision d2175aa0 (diff)
Added by Ondřej Ezr 4 months ago

Fixes #29523 - GraphQL collection preloading on Rails 6

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/7586 added

#2 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 2.1.0 added

#3 Updated by Ondřej Ezr 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF