Skip to content

Fix GraphQL ConnectionFilterExtension for list types

What does this MR do and why?

When #redact_list is called, original value is not changed if value is an instance of ActiveRecord::Relation because value.to_a creates new object

So, we need to reassign value before calling #redact_list

How to set up and validate locally

issues = Issue.all # for example
issues.to_a.object_id == issues.object_id # false

Related to #426856 (closed)

Edited by Zakir Dzhamaliddinov

Merge request reports

Loading