We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 238895a commit 67d2875Copy full SHA for 67d2875
center/router/router_recording_rule.go
@@ -149,6 +149,12 @@ func (rt *Router) recordingRulePutFields(c *gin.Context) {
149
f.Fields["datasource_queries"] = string(bytes)
150
}
151
152
+ if datasourceIds, ok := f.Fields["datasource_ids"]; ok {
153
+ bytes, err := json.Marshal(datasourceIds)
154
+ ginx.Dangerous(err)
155
+ f.Fields["datasource_ids"] = string(bytes)
156
+ }
157
+
158
for i := 0; i < len(f.Ids); i++ {
159
ar, err := models.RecordingRuleGetById(rt.Ctx, f.Ids[i])
160
ginx.Dangerous(err)
0 commit comments