Some stages are missing after a migration
Description
Currently we calculate stages on-the-fly when someone renders pipelines page. We plan to use stages persisted in the database, but we had to migrate stages before switching to persisted stages.
We recently verified whether all stages have been migrated successfully and unfortunately it appears that we still have some stages missing.
All stages have been migrated successfully but we added a code that creates a persisted stage only to CreatePipelineService
. It was a wrong assumption that this is the only service responsible for creating a pipeline, because pipeline and jobs can be also created using commit statuses API, that do not call CreatePipelineService
. This means we have some external
stage missing.
We also have a deploy
stage missing, so it appears that we also create a job for a deploy
stage outside of CreatePipelineService
class.
We need to investigate this and fix this.
\cc @ayufan @bikebilly