bk-cmdb icon indicating copy to clipboard operation
bk-cmdb copied to clipboard

【3.10.x_feature-agent-id_alpha4】动态分组模糊搜索,存在查询结果与实际不符的情况

Open sobbingchild opened this issue 2 years ago • 1 comments

一、前提条件 该业务下存在两个特殊字符组成的集群,如下图 image

二 、重现步骤: 在该业务下的动态分组中输入查询条件集群-集群名~=(使用模糊查询)$或^,如下图 image

三 、预期结果

查询条件为~=^时,预览动态分组集群模糊搜索的结果为空(不存在集群名包含^的集群)

查询条件为~=$时,预览动态分组集群模糊搜索的结果为241.221.183.247(集群$$$$@@@下包含一台主机)

四 、实际结果 使用上述查询条件查询时,预览分组的结果默认展示该业务下的全部主机 image

sobbingchild avatar Aug 10 '22 02:08 sobbingchild

看起来是模糊搜索正则表达式冲突,看看是否需要转义,需要的话前端还是后端做?

wcy00000000000000 avatar Aug 10 '22 03:08 wcy00000000000000

此issue非本版本需求所涉及,转内部TAPD(#1010080961110213267)跟进

reggieisrunning avatar Apr 18 '23 09:04 reggieisrunning