discourse-assign/spec/requests
Roman Rizzi 1a5b02755d
FIX: Don't fail because flair_uploads weren't eager loaded (#379)
The basic group serializer complains that the flair_upload relation has to be eager loaded when attempting to included assigned groups in search results, which is a consequence of using strict loading during search's preload to
avoid N+1.

Eager loading the association during this would definitely fix the problem, but is it the right solution? It seems to me that this serializer does too much, when we only need a small number of attributes to display the assigned
widget. Instead, this commit adds a lightweight custom serializer which grabs only the essentials for it to work.
2022-09-16 12:08:47 -03:00
..
assign_controller_spec.rb DEV: Fix a flaky spec and typos (#378) 2022-09-12 09:27:25 +02:00
list_controller_spec.rb DEV: Apply syntax_tree formatting 2022-07-27 13:48:51 -03:00
search_controller_spec.rb FIX: Don't fail because flair_uploads weren't eager loaded (#379) 2022-09-16 12:08:47 -03:00