Skip to content

When a project is imported once we will always check for the import status

When importing a project we set import related details such as the import URL. Once set we keep this data, even for one-time imports. This then results in us calling Project#import? every time we visit ProjectsController#show. This method in turn ends up calling Project#import_url which will run a SQL query to get import data.

This whole process should not occur for one-time imports (e.g. when importing from GitHub) as it's only useful when mirroring a project.