mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 00:43:39 +08:00
00a9369ca2
In a large forum with millions of users and millions of user_fields updating the list of dropdown user field options will result in a 502 now due to the large number of fields. This commit moves the indexing into a job.
8 lines
162 B
Ruby
8 lines
162 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:user_custom_field) do
|
|
user
|
|
name { Fabricate(:user_field).id }
|
|
value { sequence(:value) { |n| "value#{n}" } }
|
|
end
|