diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /app/controllers/projects/pipelines_controller.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb index b2aa1d9f4ca..2a8f7171f9c 100644 --- a/app/controllers/projects/pipelines_controller.rb +++ b/app/controllers/projects/pipelines_controller.rb @@ -3,6 +3,7 @@ class Projects::PipelinesController < Projects::ApplicationController include ::Gitlab::Utils::StrongMemoize include RedisTracking + include ProductAnalyticsTracking include ProjectStatsRefreshConflictsGuard include ZuoraCSP @@ -25,6 +26,7 @@ class Projects::PipelinesController < Projects::ApplicationController before_action do push_frontend_feature_flag(:pipeline_tabs_vue, @project) + push_frontend_feature_flag(:run_pipeline_graphql, @project) end # Will be removed with https://gitlab.com/gitlab-org/gitlab/-/issues/225596 @@ -32,8 +34,11 @@ class Projects::PipelinesController < Projects::ApplicationController around_action :allow_gitaly_ref_name_caching, only: [:index, :show] - # Will be removed with https://gitlab.com/gitlab-org/gitlab/-/issues/345074 - track_redis_hll_event :charts, name: 'p_analytics_pipelines' + track_custom_event :charts, + name: 'p_analytics_pipelines', + action: 'perform_analytics_usage_action', + label: 'redis_hll_counters.analytics.analytics_total_unique_counts_monthly', + destinations: %i[redis_hll snowplow] track_redis_hll_event :charts, name: 'p_analytics_ci_cd_pipelines', if: -> { should_track_ci_cd_pipelines? } track_redis_hll_event :charts, name: 'p_analytics_ci_cd_deployment_frequency', if: -> { should_track_ci_cd_deployment_frequency? } @@ -46,10 +51,10 @@ class Projects::PipelinesController < Projects::ApplicationController POLLING_INTERVAL = 10_000 feature_category :continuous_integration, [ - :charts, :show, :config_variables, :stage, :cancel, :retry, - :builds, :dag, :failures, :status, - :index, :create, :new, :destroy - ] + :charts, :show, :config_variables, :stage, :cancel, :retry, + :builds, :dag, :failures, :status, + :index, :create, :new, :destroy + ] feature_category :code_testing, [:test_report] feature_category :build_artifacts, [:downloadable_artifacts] @@ -371,6 +376,14 @@ class Projects::PipelinesController < Projects::ApplicationController def should_track_ci_cd_change_failure_rate? params[:chart] == 'change-failure-rate' end + + def tracking_namespace_source + project.namespace + end + + def tracking_project_source + project + end end Projects::PipelinesController.prepend_mod_with('Projects::PipelinesController') |