Repository import fails with "Cannot modify association"
Summary
We are trying to export/import a GitLab repository from one host to another. Unfortunately the import fails with the following import status:
"Error importing repository into <namespace>/<projectname> - Cannot modify association 'MergeRequest#suggestions' because the source reflection class 'Suggestion' is associated to 'Note' via :has_many."
Source version: 11.11.3 (Community Edition)
Destination version: 11.11.3-ee
Steps to reproduce
Export a project where a MR contains a suggestion and try importing it.
What is the current bug behavior?
Import status changes to: "Error importing repository into / - Cannot modify association 'MergeRequest#suggestions' because the source reflection class 'Suggestion' is associated to 'Note' via :has_many."
What is the expected correct behavior?
Import status is finished.
Results of GitLab environment info
Expand for output related to source GitLab environment info
* System: Debian 9.9 * Using RVM: no * Ruby Version: 2.5.3p105 * Gem Version: 2.7.9 * Bundler Version:1.17.3 * Rake Version: 12.3.2 * Redis Version: 3.2.12 * Git Version: 2.21.0 * Sidekiq Version:5.2.7 * Go Version: go1.7.4 linux/amd64- GitLab information
- Version: 11.11.3
- Revision: e3eeb779
- Directory: /opt/gitlab/embedded/service/gitlab-rails
- DB Adapter: PostgreSQL
- DB Version: 9.6.11
Expand for output related to destination GitLab environment info
* System: Ubuntu 18.04 * Proxy: no * Using RVM: no * Ruby Version: 2.5.3p105 * Gem Version: 2.7.9 * Bundler Version:1.17.3 * Rake Version: 12.3.2 * Redis Version: 3.2.12 * Git Version: 2.21.0 * Sidekiq Version:5.2.7 * Go Version: unknown * * GitLab information * Version: 11.11.3-ee * Revision: 8c5c506955e * Directory: /opt/gitlab/embedded/service/gitlab-rails * DB Adapter: PostgreSQL * DB Version: 9.6.11 * Elasticsearch: no * Geo: no
Edited by 🤖 GitLab Bot 🤖