Table: Migrate to field-level wrapText toggle, use standard hideFrom.viz for hidden fields (#109297)
* Added wrap text to table options and removed from multiple cell options * Removed wrap text from cell options shared file * Edited * Edited * Table: Migrate to field-level wrapText toggle * migrate hidden -> hideFrom.viz as well * more cleanup from rebase * restore options that got killed in the rebase * when wrap text is enabled for the whole table, exclude columns that do not make sense * fix TableNG unit tests * fix i18n * unit tests for the migrations * sort out e2e issue * fix migration unit test * fix backend migration test as well * add a dashboard for the v12.2 table migrations * update dev-dashboards.lisonnet * make gen-jsonnet * one of the panel versions didnt get updated --------- Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
This commit is contained in:
co-authored by
Isabel Matwawana
parent
699bffc9e4
commit
76b1e5e389
@@ -165,7 +165,7 @@ import (
|
||||
// {
|
||||
// "matcher": { "id": "byName", "options": "Hidden" },
|
||||
// "properties": [
|
||||
// { "id": "custom.hidden", "value": true }
|
||||
// { "id": "custom.hideFrom.viz", "value": true }
|
||||
// ]
|
||||
// }
|
||||
// ]
|
||||
@@ -436,7 +436,7 @@ func migrateTableStyleToOverride(style map[string]interface{}) map[string]interf
|
||||
// Handle hidden type
|
||||
if styleType, ok := style["type"].(string); ok && styleType == "hidden" {
|
||||
properties = append(properties, map[string]interface{}{
|
||||
"id": "custom.hidden",
|
||||
"id": "custom.hideFrom.viz",
|
||||
"value": true,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ func TestV24(t *testing.T) {
|
||||
"options": "Hidden",
|
||||
},
|
||||
"properties": []interface{}{
|
||||
map[string]interface{}{"id": "custom.hidden", "value": true},
|
||||
map[string]interface{}{"id": "custom.hideFrom.viz", "value": true},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user