dailz
|
3f8a680c99
|
feat(handler): add TaskHandler endpoints and register task routes
|
2026-04-15 21:31:11 +08:00 |
|
dailz
|
2298e92516
|
feat(handler): add upload, file, and folder handlers with routes
Add UploadHandler (5 endpoints), FileHandler (4 endpoints), FolderHandler (4 endpoints) with Gin route registration in server.go.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-15 09:23:17 +08:00 |
|
dailz
|
10bb15e5b2
|
feat(handler): add Application handler, routes, and wiring
Add ApplicationHandler with CRUD + Submit endpoints. Register 6 routes, wire in app.go, update main_test.go references. 22 handler tests.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-13 17:10:54 +08:00 |
|
dailz
|
dd8d226e78
|
refactor: remove JobTemplate production code
Remove all JobTemplate model, store, handler, migrations, and wiring. Replaced by Application Definition system.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-13 17:07:46 +08:00 |
|
dailz
|
2cb6fbecdd
|
feat(service): add pagination to GetJobs endpoint
GetJobs now accepts page/page_size query parameters and returns JobListResponse instead of raw array. Uses in-memory pagination matching GetJobHistory pattern.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-10 15:14:56 +08:00 |
|
dailz
|
34ba617cbf
|
fix(test): update log assertions for debug logging and field expansion
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-10 11:13:13 +08:00 |
|
dailz
|
1359730300
|
fix(store): return ErrRecordNotFound when updating non-existent template
RowsAffected == 0 now returns gorm.ErrRecordNotFound so the handler can respond with 404 instead of silently returning 200.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-10 09:21:03 +08:00 |
|
dailz
|
e6162063ca
|
feat: 添加 HTTP 处理层和结构化日志
- JobHandler: 提交/查询/取消/历史,5xx Error + 4xx Warn 日志
- ClusterHandler: 节点/分区/诊断,错误和未找到日志
- TemplateHandler: CRUD 操作,创建/更新/删除 Info + 未找到 Warn
- 不记录成功响应(由 middleware.RequestLogger 处理)
- 不记录请求体和模板内容(安全考虑)
- 完整 TDD 测试,使用 zaptest/observer 验证日志级别和字段
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-04-10 08:40:06 +08:00 |
|