Skip to content

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

  1. Ensure that you're on Ultimate. Seed the VSA feature:
    SEED_CYCLE_ANALYTICS=true  SEED_VSA=true FILTER=cycle_analytics rake db:seed_fu
  2. Go to Analytics > Value Stream Analytics and create a value stream.
  3. Aggregate the data in rails console
    Analytics::CycleAnalytics::IncrementalWorker.new.perform
  4. Go to the generated group and create a few group labels and assign them to issues
  5. Go to Analytics > Value Stream Analytics, data should show up. On the bottom, you should see your labels.
  6. Open the network tab in your browser and find the task_by_type request.
  7. Copy the URL and change the label_ids[]=1 param to label_names[]=your_label.
  8. 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.

Related to #368994 (closed)

Edited by Adam Hegyi

Merge request reports