Bug #29523
Tracker #28633: Update GraphQL to work with Rails 6
Graphql association preload doesn't work with Rails 6
Pull request:
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
History
#1
Updated by The Foreman Bot over 2 years 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 over 2 years ago
- Fixed in Releases 2.1.0 added
#3
Updated by Ondřej Ezr over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset d2175aa0161e6e05a0474a61ea93f0f4f135a865.
Fixes #29523 - GraphQL collection preloading on Rails 6