A platform for community discussion. Free, open, simple.
FIX: Import user IP addresses in generic bulk importer (#42384)
Ruben Oussoren11e4161921ee
diff --git a/script/bulk_import/generic_bulk.rb b/script/bulk_import/generic_bulk.rbindex 10b7753c557..24a2f8772cf 100644--- a/script/bulk_import/generic_bulk.rb+++ b/script/bulk_import/generic_bulk.rb@@ -585,6 +585,7 @@ class BulkImport::Generic < BulkImport::Baserow["username"] = "anon_#{anon_username_suffix}"row["email"] = "#{row["username"]}#{UserAnonymizer::EMAIL_SUFFIX}"row["name"] = nil+ row["ip_address"] = nilrow["registration_ip_address"] = nilrow["date_of_birth"] = nilrow["title"] = nil@@ -613,6 +614,7 @@ class BulkImport::Generic < BulkImport::Basesuspended_at: suspended_at,suspended_till: suspended_till,trust_level: row["trust_level"],+ ip_address: row["ip_address"],registration_ip_address: row["registration_ip_address"],date_of_birth: to_date(row["date_of_birth"]),primary_group_id: group_id_from_imported_id(row["primary_group_id"]),