Preferences: Add read-only APIServer for preferences and dashboard stars (#106109)

This commit is contained in:
Ryan McKinley
2025-08-28 19:51:32 +03:00
committed by GitHub
parent 05c52936a8
commit 43648d20c3
81 changed files with 3178 additions and 25 deletions
@@ -0,0 +1,16 @@
SELECT p.id, p.org_id,
p.json_data,
p.timezone,
p.theme,
p.week_start,
p.home_dashboard_uid,
u.uid as user_uid,
t.uid as team_uid,
p.created, p.updated
FROM `grafana`.`preferences` as p
LEFT JOIN `grafana`.`user` as u ON p.user_id = u.id
LEFT JOIN `grafana`.`team` as t ON p.team_id = t.id
WHERE p.org_id = 1
AND (u.uid = 'uuu'
)
ORDER BY p.user_id asc, p.team_id asc, p.org_id asc