Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ebc47b6
feat: rename @cozeloop/base-hooks -> @cozeloop/hooks
ZiQiangWang Dec 11, 2025
7af901c
feat: migrate observation packages
ZiQiangWang Dec 12, 2025
ea67914
feat: sync latest packages
ZiQiangWang Dec 12, 2025
42ac9c8
feat: adapter code to make project work
ZiQiangWang Dec 12, 2025
17a9df4
fix: observation load error
ZiQiangWang Dec 15, 2025
28393e4
fix: observation type error
ZiQiangWang Dec 18, 2025
8148e9a
add templates
Dec 18, 2025
7540f1b
fix: update evaluate route
ZiQiangWang Dec 19, 2025
a67ca69
add insert for k8s
Dec 19, 2025
3ba65a5
chore: 解决pe cr问题
yiyou-byte Dec 19, 2025
b9d058b
fix: 页面崩溃的问题
ZiQiangWang Dec 22, 2025
e317ea7
fix: open source page customview visibility default true
Maidang1 Dec 22, 2025
0794a8c
fix: ts error fix
Maidang1 Dec 22, 2025
76d3b22
feat: add license
ZiQiangWang Dec 22, 2025
77ba75c
feat: add license
ZiQiangWang Dec 22, 2025
2769a93
chore: tailwind config change
yiyou-byte Dec 23, 2025
9e1eacb
chore: varibales 增加兜底值
yiyou-byte Dec 23, 2025
41cea31
chore: add create snippet
yiyou-byte Dec 23, 2025
46ef5dc
feat: adapter evaluate
ZiQiangWang Dec 24, 2025
50cc185
chore: 去除wiki
yiyou-byte Dec 25, 2025
997e2f2
fix builtin sql
tpfz Dec 30, 2025
ac0bded
fix: user select label
ZiQiangWang Dec 31, 2025
b0f8579
[feat][frontend]fix some evaluation issues (#371)
wec4dre96-w Jan 4, 2026
2f533fc
fix(observation): trace 相关问题修复
Maidang1 Jan 5, 2026
ee197ea
[feat][frontend] update evaluation data menus. (#377)
Mrsosann Jan 5, 2026
8e7a8d3
fix: 隐藏人工标注和 feedback
Maidang1 Jan 6, 2026
6d7e6b9
chore: fix prompt delete navigate
yiyou-byte Jan 6, 2026
71a7d4a
[feat][frontend] fix tag (#383)
Mrsosann Jan 7, 2026
8545b6c
fix(evaluation): evaluator tag data
lsy357 Jan 15, 2026
b77e3e7
chore: 隐藏 snippet 片段能力
yiyou-byte Jan 15, 2026
b3ef7af
feat(frontend): update license
ZiQiangWang Jan 15, 2026
90c1370
chore: 隐藏 snippet 片段能力
yiyou-byte Jan 15, 2026
003e0a3
fix(frontend): remove useless file
ZiQiangWang Jan 15, 2026
dff8786
chore: prompt 列表页移除 segment
yiyou-byte Jan 16, 2026
0399b6a
fix(evaluation): evaluator template record
lsy357 Jan 16, 2026
334a5a9
fix(evaluation): idl tag
lsy357 Jan 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions backend/kitex_gen/coze/loop/evaluation/domain/expt/expt.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -212,24 +212,38 @@ func (dao *EvaluatorTagDAOImpl) GetSourceIDsByFilterConditions(ctx context.Conte
return nil, 0, err
}

// 分页处理
// 为 SELECT 构造一个不带分页副作用的基准查询
selectBaseQuery := query.Session(&gorm.Session{})

// 分页参数(延后到最外层查询中再应用,避免影响 DISTINCT 子查询)
var limit, offset int
if pageSize > 0 && pageNum > 0 {
offset := (pageNum - 1) * pageSize
query = query.Limit(int(pageSize)).Offset(int(offset))
limit = int(pageSize)
offset = int((pageNum - 1) * pageSize)
}

// 为了兼容 MySQL 在 DISTINCT 场景下对 ORDER BY 的限制(排序字段必须出现在 SELECT 列表中),
// 这里构造一个子查询:内部 SELECT DISTINCT source_id, t_name.tag_value,外层再按 tag_value 排序并做分页。
subQuery := selectBaseQuery.
Select("DISTINCT evaluator_tag.source_id, t_name.tag_value")

outerQuery := dbsession.WithContext(ctx).
Table("(?) AS src", subQuery).
Order("src.tag_value IS NULL, src.tag_value ASC")
if limit > 0 {
outerQuery = outerQuery.Limit(limit).Offset(offset)
}

// 执行查询(按 Name 标签值排序;无 Name 的排在后面)
var sourceIDs []int64
// 打印 SELECT SQL(完整)
selectSQL := query.ToSQL(func(tx *gorm.DB) *gorm.DB {
selectSQL := outerQuery.ToSQL(func(tx *gorm.DB) *gorm.DB {
var tmp []int64
return tx.Distinct("evaluator_tag.source_id").Order("t_name.tag_value IS NULL, t_name.tag_value ASC").Pluck("evaluator_tag.source_id", &tmp)
return tx.Pluck("src.source_id", &tmp)
})
logs.CtxInfo(ctx, "[GetSourceIDsByFilterConditions] SELECT SQL: %s", selectSQL)
err := query.
Distinct("evaluator_tag.source_id").
Order("t_name.tag_value IS NULL, t_name.tag_value ASC").
Pluck("evaluator_tag.source_id", &sourceIDs).Error
err := outerQuery.
Pluck("src.source_id", &sourceIDs).Error
if err != nil {
if errors.Is(err, gorm.ErrRecordNotFound) {
return []int64{}, total, nil
Expand Down
1 change: 0 additions & 1 deletion common/config/subspaces/default/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"@coze-arch/coze-design": "0.0.7-alpha.985c0d"
},
"allowedAlternativeVersions": {
"@coze-arch/coze-design": ["0.0.6-alpha.101d0c"],
"@rspack/cli": ["0.6.0"],
"@rspack/core": ["0.6.0", ">=0.7"],
"@rspack/plugin-react-refresh": ["0.6.0"],
Expand Down
Loading
Loading