Skip to content

Commit

Permalink
业务配置自动话创建看板,看板校验导入有删除逻辑不校验
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Nov 19, 2024
1 parent 0454480 commit 2c00d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monitor-server/services/db/log_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,8 @@ func CreateLogMetricGroup(param *models.LogMetricGroupWithTemplate, operator str
if customDashboardList, err = QueryCustomDashboardListByName(customDashboardName); err != nil {
return
}
if len(customDashboardList) > 0 {
// 新增看板已经入库,这里数量大于1表示有重复名称
if len(customDashboardList) > 1 {
err = fmt.Errorf(errMsgObj.ImportDashboardNameExistError, customDashboardName)
return
}
Expand Down

0 comments on commit 2c00d3c

Please sign in to comment.