Merge branch 'optimize-projects-for-imported-projects' into 'master'
check the import_status field before doing SQL operations to check the import url
See merge request gitlab-org/gitlab-ce!15752
(cherry picked from commit 49a9de11)
946d87d3 check the import_status field before doing SQL operations to check the import url