Persist empty description

This commit is contained in:
Andrej Ocenas 2025-10-06 14:37:47 +02:00
parent 0b716c10ea
commit 44fa2a26d2
2 changed files with 2 additions and 5 deletions

View File

@ -2677,11 +2677,6 @@
"count": 2
}
},
"public/app/features/datasources/components/picker/DataSourceCard.tsx": {
"no-restricted-syntax": {
"count": 1
}
},
"public/app/features/datasources/state/actions.test.ts": {
"@typescript-eslint/no-explicit-any": {
"count": 2

View File

@ -370,6 +370,8 @@ func (ss *SqlStore) UpdateDataSource(ctx context.Context, cmd *datasources.Updat
sess.MustCols("password")
sess.MustCols("basic_auth_password")
sess.MustCols("user")
// Ensure comment is persisted even when clearing to empty string
sess.MustCols("comment")
// Make sure secure json data is zeroed out if empty. We do this as we want to migrate secrets from
// secure json data to the unified secrets table.
sess.MustCols("secure_json_data")