You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: