Support `label_name` parameter in task by type API
What does this MR do and why?
Note: not user-facing change
This MR extends the Task by Type internal API for value stream analytics to use label_names
params instead of label_ids
. Related issue: #368994 (closed)
Issue for removing the label_ids
param in the next release: #370085 (closed)
How to set up and validate locally
- Ensure that you're on Ultimate. Seed the VSA feature:
SEED_CYCLE_ANALYTICS=true SEED_VSA=true FILTER=cycle_analytics rake db:seed_fu
- Go to
Analytics > Value Stream Analytics
and create a value stream. - Aggregate the data in rails console
Analytics::CycleAnalytics::IncrementalWorker.new.perform
- Go to the generated group and create a few group labels and assign them to issues
- Go to
Analytics > Value Stream Analytics
, data should show up. On the bottom, you should see your labels. - Open the network tab in your browser and find the
task_by_type
request. - Copy the URL and change the
label_ids[]=1
param tolabel_names[]=your_label
. - The URL should show data.
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 #368994 (closed)
Edited by Adam Hegyi