Add table to record placeholder contributions
During an import that uses the improved user mapping from https://gitlab.com/groups/gitlab-org/-/epics/12378, initially, the users associated with the imported data are "placeholder" users (a kind of internal user) rather than the real users. The placeholder user is recorded in `Import::SourceUser#placeholder_user` Later the `Import::SourceUser` is assigned a real user, the `Import::SourceUser#assigned_to_user`, after the real user has authorized this. At this point, we need to change all imported data from being associated with the `placeholder_user` to the (real) `assigned_to_user`. The table in this commit records what imported data should be updated in this process. https://gitlab.com/gitlab-org/gitlab/-/issues/443554 Changelog: added
显示
- app/models/import/source_user_placeholder_reference.rb 27 个添加, 0 个删除app/models/import/source_user_placeholder_reference.rb
- app/validators/json_schemas/import_source_user_placeholder_reference_composite_key.json 19 个添加, 0 个删除...port_source_user_placeholder_reference_composite_key.json
- db/docs/import_source_user_placeholder_references.yml 14 个添加, 0 个删除db/docs/import_source_user_placeholder_references.yml
- db/migrate/20240612034702_create_import_source_user_placeholder_reference.rb 24 个添加, 0 个删除...034702_create_import_source_user_placeholder_reference.rb
- db/schema_migrations/20240612034702 1 个添加, 0 个删除db/schema_migrations/20240612034702
- db/structure.sql 37 个添加, 0 个删除db/structure.sql
- spec/factories/import_source_user_placeholder_references.rb 11 个添加, 0 个删除spec/factories/import_source_user_placeholder_references.rb
- spec/models/import/source_user_placeholder_reference_spec.rb 45 个添加, 0 个删除spec/models/import/source_user_placeholder_reference_spec.rb
加载中
想要评论请 注册 或 登录