Skip to content

appropriately set the generation method of the compute grouping type

Administrator requested to merge insights/fix-group-type-generation-method into main

Created by: coury-clark

Setting the appropriate generation_method when a grouping type insight comes through.

Test plan

Created an insight with the following input:

{
  "input": 
  {
    "dataSeries":
      {
        "groupBy": "LANG",
        "generatedFromCaptureGroups": true,
        "query": "Messages",
        "label": "abc",
        "repositoryScope": {
          "repositories": ["github.com/sourcegraph/sourcegraph"]
    		},
        "timeScope": {
          "stepInterval": {
            "unit": "MONTH",
            "value": 1
          }
        },
        "options": {
          "label": "label me",
					"lineColor": "blue"
        }
      },
    "options": {
      "title": "testing compute group insight 2"
    }, 
    "viewControls": {
      "filters": {
        
      },
      "seriesDisplayOptions": {
        
      }
    }
  }
}
CleanShot 2022-07-07 at 11 46 42@2x

Merge request reports

Loading