Importing a project without Services throws an error about Services
Zendesk ticket (internal link): https://gitlab.zendesk.com/agent/tickets/86012
A customer is trying to import a project that has no Services into another instance and getting the following error:
We've checked to confirm the project on the old instance has no Services:
Loading production environment (Rails 4.2.8)
irb(main):001:0> # Find the project and get its services
irb(main):002:0* project = Project.find_by_full_path('<project>')
=> #<Project id:25 <project>>
irb(main):003:0> project.services
=> #<ActiveRecord::Associations::CollectionProxy []>
I used the import file and reproduced the error on 10.2.2 and 10.2.5. The import file can be found in the ticket, linked above.
/cc @jramsay @jameslopez