26107e9354
Previously imports would fail if a merge request note included a suggestion with an `ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection` exception. This was happening because suggestions were listed as a descendant of merge requests, but this doesn't work because suggestions are directly associated with notes, not merge requests, and that association is lost. Rails also disallows creating intializing a has_many association through a different object. We fix this by making `suggestions` a child of `notes` within a merge request. This doesn't fix previously broken exported project exports, but new exports will work. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65880 |
||
---|---|---|
.. | ||
after_export_strategies | ||
after_export_strategy_builder_spec.rb | ||
all_models.yml | ||
attribute_cleaner_spec.rb | ||
attribute_configuration_spec.rb | ||
avatar_restorer_spec.rb | ||
avatar_saver_spec.rb | ||
command_line_util_spec.rb | ||
config_spec.rb | ||
file_importer_spec.rb | ||
fork_spec.rb | ||
group_project_object_builder_spec.rb | ||
hash_util_spec.rb | ||
import_export_spec.rb | ||
importer_spec.rb | ||
lfs_restorer_spec.rb | ||
lfs_saver_spec.rb | ||
members_mapper_spec.rb | ||
merge_request_parser_spec.rb | ||
model_configuration_spec.rb | ||
project.group.json | ||
project.json | ||
project.light.json | ||
project.milestone-iid.json | ||
project_tree_restorer_spec.rb | ||
project_tree_saver_spec.rb | ||
reader_spec.rb | ||
relation_factory_spec.rb | ||
relation_rename_service_spec.rb | ||
repo_restorer_spec.rb | ||
repo_saver_spec.rb | ||
safe_model_attributes.yml | ||
saver_spec.rb | ||
shared_spec.rb | ||
uploads_manager_spec.rb | ||
uploads_restorer_spec.rb | ||
uploads_saver_spec.rb | ||
version_checker_spec.rb | ||
wiki_repo_saver_spec.rb | ||
wiki_restorer_spec.rb |