Skip to content

create_or_update in dashboard not working because of folders? #125

Open
@johannes-russek-sh

Description

@johannes-russek-sh

Hi,
it seems that I am unable to create a dashboard because the get_folder_id_by_dashboard_path() function is not finding the folder.
It appears that the get_all_folder_ids_and_names() function returns an empty set in our grafana cloud instance.

Interestingly, if I change the get_folder_id_by_dashboard_path() function to use get_folders() instead, it works just fine.

Am I doing something incorrectly? What's the reason for using the search endpoint when finding the id of a dashboard?

I'd be happy to send a PR, it's literally one line of change - but I'd like to understand this better of course.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions