Move outdated deployment warning to FOSS
requested to merge 383993-error-message-of-outdated-deployment-job-doesn-t-appear-on-foss into master
What does this MR do and why?
Describe in detail what your merge request does and why.
Prevent outdated deployment jobs shows a warning message This deployment job does not run automatically and must be started manually, but it's older than the latest deployment, and therefore can't run.
. However, this doesn't appear in FOSS.
This MR moves the related code out of /ee folder.
Screenshots or screen recordings
Note: following screenshots are taken when running local rails app with FOSS_ONLY=1
BEFORE
AFTER
How to set up and validate locally
-
export FOSS_ONLY=1
andgdk restart rails
- Enable
Prevent outdated deployment jobs
in Settings -> CI/CD -> General pipelines - Create a gitlab-ci.yml with a single deploy stage, stage should be manually triggered. Commit
- Edit anything in the codebase and commit again.
- Trigger the latest job.
- You should not be able to trigger the earlier job. If you go to job show page, it should say "This deployment job does not run automatically and must be started manually, but it's older than the latest deployment, and therefore can't run."
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383993 (closed)
Edited by Halil Coban