Skip to content

Implement deprecation notification in pipeline page

What does this MR do and why?

In the pipeline page, we will now show a deprecation notification for user whose project CI configuration countains root types keyword or job level typekeyword which can be dismissed and never seen again.

IMPORTANT

The alert was planned to not be dismissible because this is a 5 years old deprecated keyword. Our initial analytic revealed very little projects are still using that keyword and because the keyword is going to be removed, in 15.0, the only way until 15.0 to remove that notification will be to fix your CI configuration to not use types or types (see discussion #348410 (comment 812602775))

Screenshots or screen recordings

Before After with root types After with two warnings After with type warning
Screen_Shot_2022-01-19_at_11.43.24_AM Screen_Shot_2022-01-19_at_11.43.06_AM Screen_Shot_2022-01-19_at_6.38.15_PM Screen_Shot_2022-01-19_at_6.33.52_PM

Screen_Recording_2022-01-19_at_11.42.23_AM

How to set up and validate locally

  • Go to CI/CD => Editor
  • Write either root types (which replaces stages) and or type under a job, which replaces "stage"
  • Commit these changes
  • Run a pipeline (you might need to trigger it manually if you committed your changes on main branch)
  • Go on that pipeline
  • Notice that you get a warning that you are using a deprecated keyword with a link to the doc.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #348410 (closed)

Edited by Frédéric Caplette

Merge request reports

Loading