Backend: Implement deprecation notification for types and type keyword

This is an implementation issue to track the deprecation of types and type keyword

types and type

We want to implement the deprecation process so we could remove types in %15.0

Proposal

Phase 1: Implement telemetry

This is a pure backend work to capture the usage for the type and types keywords

We should track the telemetry to understand the number of unique users (or pipelines) where types keyword is used, this way we could understand the potential impact.

Phase 2 - implement deprecation notice warning

#348410 (closed) is the frontend issue

image

Further improvements

Phase 3 - Optional send email notification, depends on the number of users that are using types

Phase 4 - remove types - https://gitlab.com/gitlab-org/gitlab/-/issues/346823 - - Schedule for 15.0

Note - Phase 3 & 4 are out of scope for this issue``

Edited by Frédéric Caplette