Fix GraphQL ConnectionFilterExtension for list types
requested to merge gitlab-community/gitlab:426856-fix-graphql-authorize-connection-filter-extension-for-list-type-fields into master
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