Introduce a common class for Stage
When adding a new feature that involves stages (Ci::Stage
and Ci::LegacyStage
) like https://gitlab.com/gitlab-org/gitlab-ce/issues/28741, we need to make sure both classes are prepared for it, meaning we need to add changes to both files. That can quickly become repetitive and duplicate backend maintenance.
Would be better to define a common class for both of them.