Skip to content

Conversation

pgillich
Copy link

@pgillich pgillich commented Jul 23, 2025

Fixes #125 by simple way.
The folderIds=0 must be replaced to folderIds=null
Issue was intruduced with Grafana 12. Fix is tested with Grafana 11 and 12.

Grafana 12 may use different (version of) CLI parameter parser, which puts the 0 as an item of FolderIds, but the null keeps the FolderIds list empty, see in Grafana source code:

FolderIds []int64 `json:"folderIds"`

https://github.com/grafana/grafana/blob/60df44bb2366fa79808dda46bb2657a2a1646307/pkg/services/dashboards/database/database.go#L921

  if len(query.FolderIds) > 0 {
    filters = append(filters, searchstore.FolderFilter{IDs: query.FolderIds})
  }

Fixes ZPascal#125 by simple way
the folderIds=0 must be replaced to folderIds=null
Issue was intruduced with Grafana 12. Fix is tested with Grafana 11 and 12.
@ZPascal ZPascal self-requested a review July 24, 2025 04:30
@pgillich
Copy link
Author

@ZPascal Do you have any idea, why several integration tests were failed with below error message?

Request URL is missing an 'http://' or 'https://' protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_or_update in dashboard not working because of folders?
1 participant