Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse parentUid for folders #265

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ var ErrFolderNotFound = errors.New("folder not found")
// Folder represents a dashboard folder.
// See https://grafana.com/docs/grafana/latest/reference/dashboard_folders/
type Folder struct {
ID uint `json:"id"`
UID string `json:"uid"`
Title string `json:"title"`
ID uint `json:"id"`
UID string `json:"uid"`
ParentUID string `json:"parentUid"`
Title string `json:"title"`
}

// FindOrCreateFolder returns the folder by its name or creates it if it doesn't exist.
Expand Down
Loading