mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(unified-storage): keep tags on reduce of dashboards (#100230)
This commit is contained in:
parent
f4426e22bf
commit
c8609b8a61
@ -31,7 +31,7 @@ func NewDashboardLargeObjectSupport(scheme *runtime.Scheme) *apistore.BasicLarge
|
||||
dash.Spec = spec
|
||||
dash.SetManagedFields(nil) // this could be bigger than the object!
|
||||
|
||||
keep := []string{"title", "description", "schemaVersion"}
|
||||
keep := []string{"title", "description", "tags", "schemaVersion"}
|
||||
for _, k := range keep {
|
||||
v, ok := old[k]
|
||||
if ok {
|
||||
|
@ -54,7 +54,8 @@ func TestLargeDashboardSupport(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.JSONEq(t, `{
|
||||
"schemaVersion": 33,
|
||||
"title": "Panel tests - All panels"
|
||||
"title": "Panel tests - All panels",
|
||||
"tags": ["gdev","panel-tests","all-panels"]
|
||||
}`, string(small))
|
||||
|
||||
// Now make it big again
|
||||
|
Loading…
Reference in New Issue
Block a user