mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 23:53:05 +08:00

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
|