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

Uploading grafana Teams, team ID not preserved #385

Open
safaci2000 opened this issue Feb 5, 2025 · 0 comments
Open

Uploading grafana Teams, team ID not preserved #385

safaci2000 opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@safaci2000
Copy link
Contributor

Discussed in #334

Originally posted by pachomunoz January 10, 2025
GDG version: 0.7.1
command executed: /app/gdg backup team upload
Running on docker
Local storage

I am encountering a challenge when uploading teams and folder permissions to Grafana. Specifically, the issue arises from how gdg upload the team IDs. Although the folder-permission JSON explicitly links permissions to predefined team IDs, Grafana appears to assign teams IDs based on alphabetical order when uploading the teams.

As a result, the mismatched team IDs lead to incorrect folder permissions being assigned, causing a disruption in the intended configurations.

Example.
Team Json
{
"avatarUrl": "/avatar/e115e1397cec31ece81567f33b2aa0b6",
"id": 5,
"memberCount": 1,
"name": "telcoExplorer",
"orgId": 1
}

Folder permission Json
{
"created": "2025-01-08T06:15:43.000Z",
"folderId": 3,
"isFolder": true,
"permission": 1,
"permissionName": "View",
"slug": "aom-uam",
"team": "telcoExplorer",
"teamAvatarUrl": "/avatar/e115e1397cec31ece81567f33b2aa0b6",
"teamId": 5,
"title": "AOM_UAM",
"uid": "yMIyqExVk",
"updated": "2025-01-08T06:15:43.000Z",
"url": "/dashboards/f/yMIyqExVk/aom-uam"
},

For reference:

In the JSON team, team IDs are clearly defined and related to folder permissions. 5 and 5,
Upon upload, the IDs are reassigned alphabetically, creating the mismatch. creating the telcoexplorer id = 7

/app/gdg backup team upload

image

I would appreciate any guidance on how to resolve this issue. Is there a way to ensure that the team IDs in Grafana align with the predefined IDs in the teams JSON? maybe the /app/gdg backup team upload --team solve this, i dont know how to use it? , or i am missing something?

Thank you for your time and assistance. I look forward to hearing from you.

@safaci2000 safaci2000 self-assigned this Feb 5, 2025
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

No branches or pull requests

1 participant