Library panels cannot be edited

  • What Grafana version and what operating system are you using?

  • 11.1.3, linux

  • What are you trying to achieve?
    Edit library panels after creation

  • How are you trying to achieve it?
    “Edit” menu option which opens “edit panel” view

  • What happened?

  • Query type is “random walk” instead of the variable type, in this case ${datasource}

  • also in the panel JSON the datasource is listed out as

  •         "datasource": {
              "0": "$",
              "1": "{",
              "2": "d",
              "3": "a",
              "4": "t",
              "5": "a",
              "6": "s",
              "7": "o",
              "8": "u",
              "9": "r",
              "10": "c",
              "11": "e",
              "12": "}"
            },
    
    

instead of like the below

        "type": "prometheus",
        "uid": "zHDFgJmnk"
  • What did you expect to happen?
    To be alble to edit

  • Can you copy/paste the configuration(s) that you are having problems with?
    I tried but it blocks me from creating te issue because I am a new user. I have included below a gist of these items
    Grafana traces · GitHub

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • i is undefined (uncaught type error from [module.ts:33:4]

  • Did you follow any online instructions? If so, what is the URL?
    Edit panel no query

For context this appears to have happened when the data field went from

“datasource”: “12345”

to

“datasource”: {
“type”: “stackdriver”,
“uid”: “12345”
}

Adjusting that throughout the dashes fixed our issue. This is closed