Skip to content

code insights: add new user/org/global settings schema

Administrator requested to merge sg/codeinsights-settings into main

Created by: slimsag

This adds a schema definition for code insights to be stored in user/org/global settings.

I drew inspiration from the current schema the frontend uses, and also ensured this aligns closely with the GraphQL schema #17842

Example which describes an insight with two series from search results:

  "insights": [
    {
      "title": "fmt usage",
      "description": "fmt.Errorf/fmt.Printf usage",
      "series": [
        {
          "label": "fmt.Errorf",
          "search": "errorf",
        },
        {
          "label": "printf",
          "search": "fmt.Printf",
        }
      ]
    }
  ]

Signed-off-by: Stephen Gutekanst [email protected]

Merge request reports

Loading