Update BulkImports transformers to remove usage of then

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Suggestion from !68873 (comment 671872442)

Do not use then in BulkImports transformers as it returns new copy of a hash, which contributes to memory consumption increase. Mutate local hash instead.

Example: https://gitlab.com/gitlab-org/gitlab/blob/d8db3d37859d8d7795dfc85e8e3853821c55d628/lib/bulk_imports/groups/transformers/group_attributes_transformer.rb#L10-L10

Update all of the transformers where it's used.

Edited Jul 15, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading