• Timothy Andrew's avatar
    Add a "populate metrics directly" option to the cycle analytics seed. · 161804bf
    Timothy Andrew authored
    - The normal seed creates all the data for cycle analytics the "right"
      way. It creates issues, merge requests, commits, branches,
      deployments, etc. This is good, but too slow for perf testing.
      Generating a 1000 sets of records this way takes more than an hour.
    
    - When the `CYCLE_ANALYTICS_POPULATE_METRICS_DIRECTLY` environment
      variable is passed in, the seed only creates issues and merge
      requests. It then adds the `metrics` for each issue and
      merge request directly, to save time.
    
    - The seed now takes about 4 minutes to run for 1000 sets of records.
    161804bf
17_cycle_analytics.rb 7.54 KB