Add tracking to root cause analysis button
What does this MR do and why?
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
![]() |
![]() |
How to set up and validate locally
- Setup gdk to simulate SaaS - https://docs.gitlab.com/ee/development/ee_features.html#simulate-a-saas-instance and restart GDK.
- Sign in as root.
- Have duo setup or apply this patch:
Patch
diff --git a/app/assets/javascripts/ci/common/pipelines_table.vue b/app/assets/javascripts/ci/common/pipelines_table.vue
index 1cf22c0b258a..d74c7863f81b 100644
--- a/app/assets/javascripts/ci/common/pipelines_table.vue
+++ b/app/assets/javascripts/ci/common/pipelines_table.vue
@@ -51,7 +51,7 @@ export default {
mixins: [Tracking.mixin()],
inject: {
useFailedJobsWidget: {
- default: false,
+ default: true,
},
},
props: {
diff --git a/ee/app/assets/javascripts/ci/job_details/components/root_cause_analysis_button.vue b/ee/app/assets/javascripts/ci/job_details/components/root_cause_analysis_button.vue
index dd34a31c1222..e510d6808608 100644
--- a/ee/app/assets/javascripts/ci/job_details/components/root_cause_analysis_button.vue
+++ b/ee/app/assets/javascripts/ci/job_details/components/root_cause_analysis_button.vue
@@ -45,6 +45,7 @@ export default {
return failedGroups.includes(this.jobStatusGroup);
},
shouldDisplayButton() {
+ return true;
return this.jobFailed && this.canTroubleshootJob && this.isBuild;
},
},
- Visit http://gdk.test:3000/jashkenas/Underscore/-/pipelines
- Go to the last page and extend failed job. Click
Troubleshoot. - Make sure
projects:pipelines:indexevents are generated. - Visit http://gdk.test:3000/jashkenas/Underscore/-/jobs/335
- Click
Troubleshoot. Make sureprojects:jobs:showevents are generated.
Tracking
| category | action |
|---|---|
projects:pipelines:index |
render_root_cause_analysis |
projects:pipelines:index |
click_root_cause_analysis |
projects:jobs:show |
render_root_cause_analysis |
projects:jobs:show |
click_root_cause_analysis |
Related to #507261 (closed)
Edited by Serhii Yarynovskyi

