cjw
|
0e6b3b1811
|
后端设计治理:批次 0-4 全部完成(安全/部署/一致性/结构/架构)
按 ROADMAP §3.1 治理批次推进的后端设计审查整改:
- 批次 0(安全):/api/status/{task_id} 补 JWT 鉴权与任务归属校验;
pythonocc_available 真实探测;bcrypt 超 72 字节显式拒绝;
SECRET_KEY/RUSTFS_* 惰性校验,代码侧弱默认移除
- 批次 1(部署正确性):主处理链路改走 RustFS(分派入参 stp_file_id 化,
worker 按 object_key 下载);AUTO_MIGRATE 开关 + 迁移目录 alembic/→migrations/
修复包遮蔽(自动迁移此前从未真正生效);OCC 镜像改 conda 原生执行 +
基础镜像 tag 锁定;compose 关键项改 ${VAR:?} 强制显式配置
- 批次 2(任务一致性):删除 Redis 进程内存回退,PG 为任务状态单一事实源;
批量元数据入库(processing_tasks.batch_id,迁移 a3f8c2d91e47);
型腔失败任务标 failed 不再静默 completed;事务边界收口
(数据本体写 flush-only、失败先回滚再置 failed、进度更新保留即时 commit)
- 批次 3(API 与代码结构):592 行 advanced_router 拆为 design/cost/machining/
export 四子路由,请求体全量 Pydantic 化;ROUTE_MODULES + route_registry
(/api/health 呈现 degraded,DEBUG fail fast);纯计算端点统一 to_thread;
StorageIntegrationService 按职责三拆;MAX_FILE_SIZE 接线生效、
celery 复用 Settings.redis_url;管理员重置密码改 JSON body(端到端断裂修复);
openapi.json 重导出(76 paths)+ 前端 gen:api
- 批次 4(架构演进):共享 ORM 按模块拆分(shared/models/base.py + identity.py、
moldinsight/models/、inventory/models/,删除三条无使用方的跨模块
relationship,跨模块桥接收敛为裸 FK 硬规则,无兼容 facade);
OCC executor 重建补 cancel_futures=True(消除旧队列被慢恢复线程
并行消化的数据竞争);OCC 吞吐方案设计先行
(docs/topics/performance/OCC_THROUGHPUT.md);顺手清偿 D15
(vite.config.ts 未用参数致 npm run build 失败)
测试基线:125 passed, 2 skipped(pytest + sqlite+aiosqlite;归属边界、
路由契约、配置治理、鉴权回归等随批新增)
文档同步:STATUS / TECH_DEBT / ROADMAP / ARCHITECTURE / API_CONTRACT /
OPERATIONS / AGENTS
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 16:15:49 +08:00 |
|
cjw
|
4537faf2c4
|
优化
|
2026-09-16 17:55:04 +08:00 |
|
cjw
|
3f120417d1
|
文档
|
2026-09-15 18:07:33 +08:00 |
|
cjw
|
6464e89942
|
文档
|
2026-09-15 18:02:25 +08:00 |
|
cjw
|
4fbff0761a
|
x
|
2026-09-02 18:18:42 +08:00 |
|
cjw
|
5e531ffe1e
|
文档目录结构简洁化
|
2026-09-01 18:05:18 +08:00 |
|
cjw
|
bee439cf34
|
x
|
2026-08-31 18:01:34 +08:00 |
|
cjw
|
3ea59551db
|
模块拆分 init
|
2026-08-27 14:53:22 +08:00 |
|
cjw
|
e6ddea33a2
|
fix(frontend): 移除 openapi-typescript 依赖,解决 TS6 peer 冲突导致服务器 npm install 失败
- openapi-typescript 仅用于本地 gen:api 生成类型,不参与构建,服务器不需要
- gen:api 改用 npx --yes openapi-typescript@7.13.0 按需拉取
- 服务器 npm install 不再需要 --legacy-peer-deps
|
2026-08-04 10:13:08 +08:00 |
|
cjw
|
3b5f70f1f3
|
chore(deploy): 移除仓库内 deploy.sh,避免与服务器钩子脚本同名冲突
|
2026-08-03 17:08:45 +08:00 |
|
cjw
|
eab4137c0a
|
fix(frontend)+chore(deploy): 修复明细表格渲染 + static/ 改服务器构建
- SalesOrdersTab/PurchaseOrdersTab/MaterialsTab/ProductsTab: t-table 明细行不渲染(push/splice 改新数组引用)+ Decimal 算术类型错误(Number() 包裹)
- static/ 不再进 git(.gitignore),改为 deploy.sh 在服务器 npm run build
- 新增 deploy.sh:拉取 + 构建前端 + 重启后端
|
2026-08-03 16:12:34 +08:00 |
|
cjw
|
4ec6f98f10
|
x
|
2026-07-31 16:55:52 +08:00 |
|
cjw
|
2f811b986c
|
fix(deploy): 恢复跟踪 .env,修复服务器 git pull 后无 .env 导致服务无法启动
|
2026-07-31 16:07:44 +08:00 |
|
cjw
|
5016458e44
|
x
|
2026-07-31 15:57:13 +08:00 |
|
cjw
|
a330757946
|
xx
|
2026-07-30 11:01:00 +08:00 |
|
cjw
|
853c478657
|
xxx
|
2026-07-30 10:30:50 +08:00 |
|
cjw
|
cf6d708566
|
xxx
|
2026-07-27 15:54:25 +08:00 |
|
cjw
|
a8c0e1af3d
|
docs: 更新演进路线图(P1-2 注册表 + P1-4 Alembic 进度)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-20 11:05:03 +08:00 |
|
cjw
|
00ca81287e
|
feat(db): 引入 Alembic 取代裸 DDL 迁移
- alembic init + env.py 接 settings/models metadata(asyncpg->psycopg2 同步 URL)
- 补 3 个 CheckConstraint 到 models(原只在裸 DDL)
- 离线生成初始迁移(31 表+约束+95 索引,全 sa.* 通用类型)
- init_db 用 _run_alembic_migrations(自动基线+upgrade head)替换 create_tables+ensure_schema_updates(删 92 行裸 DDL)
- 删破坏性 migrate_db.py(drop_all)
- 既有 DB 首次启动自动 stamp 基线,无需手动
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-20 11:04:23 +08:00 |
|
cjw
|
66ba6e00f5
|
refactor(moldinsight): 引入可插拔注册表(MoldGenerator + FeatureDetector)
- 新增 MoldGeneratorRegistry:multi_scheme_planner 消除 if-else,按 mold_type 选生成器
- 新增 FeatureDetectorRegistry:geometry_analyzer._detect_features 消除 6 个检测器硬编码
- 新增模具类型/特征检测器只需 register 一行
- 移除 OCC ThreadPoolExecutor(注册表本身串行执行)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-20 11:03:16 +08:00 |
|
cjw
|
f3d2951dc3
|
x
|
2026-07-20 10:16:27 +08:00 |
|
cjw
|
8493f0df03
|
init
|
2026-07-13 17:44:50 +08:00 |
|
cjw
|
975fa1ffac
|
init
|
2026-07-13 17:44:37 +08:00 |
|
cjw
|
6b3188e693
|
x
|
2026-06-23 09:38:31 +08:00 |
|
cjw
|
f6d8829071
|
x
|
2026-06-16 11:15:03 +08:00 |
|
cjw
|
f71a48d3b8
|
x
|
2026-06-12 13:55:38 +08:00 |
|
cjw
|
c4616cbbee
|
x
|
2026-06-11 15:08:42 +08:00 |
|
cjw
|
f4457a5372
|
x
|
2026-06-10 13:44:05 +08:00 |
|
cjw
|
c39c0b547f
|
x
|
2026-06-10 11:21:17 +08:00 |
|
cjw
|
fdbde938f9
|
x
|
2026-06-09 16:19:15 +08:00 |
|
cjw
|
4151e4963b
|
x
|
2026-06-09 15:44:17 +08:00 |
|
cjw
|
dadde0ed5c
|
x
|
2026-06-09 14:17:21 +08:00 |
|
cjw
|
fa2178fbd8
|
x
|
2026-06-09 13:44:53 +08:00 |
|
cjw
|
5d73a7d036
|
x
|
2026-06-09 11:26:42 +08:00 |
|
cjw
|
7d0fa506b6
|
x
|
2026-06-09 11:14:03 +08:00 |
|
cjw
|
c6a8bc39da
|
x
|
2026-06-04 17:51:11 +08:00 |
|
cjw
|
65033666ef
|
优化前端,使用组件Element
|
2026-06-02 15:56:04 +08:00 |
|
cjw
|
cafa3ef883
|
xx
|
2026-06-02 09:55:28 +08:00 |
|
cjw
|
8cca6f9d32
|
x
|
2026-06-02 09:55:06 +08:00 |
|
cjw
|
ecc6b8ab8a
|
修复铝价格走势
|
2026-06-01 14:52:47 +08:00 |
|
cjw
|
c6f1901703
|
x
|
2026-06-01 14:10:14 +08:00 |
|
cjw
|
1691fa924d
|
x
|
2026-06-01 13:51:16 +08:00 |
|
cjw
|
39ff62c47e
|
x
|
2026-06-01 13:40:53 +08:00 |
|
cjw
|
b22431d3cb
|
x
|
2026-06-01 10:44:08 +08:00 |
|
cjw
|
a91b6ab21f
|
修正为python3.12镜像
|
2026-06-01 10:11:25 +08:00 |
|
cjw
|
77bdf56adf
|
重写独立dockerfile
|
2026-05-29 18:19:30 +08:00 |
|
cjw
|
823a387118
|
后端模块拆分
|
2026-05-29 18:10:08 +08:00 |
|
cjw
|
5bb9bc84ea
|
前端重构 Vite
|
2026-05-29 17:30:26 +08:00 |
|
cjw
|
cbd5d98993
|
x
|
2026-05-29 10:11:28 +08:00 |
|
cjw
|
7d35728373
|
x
|
2026-05-29 10:00:08 +08:00 |
|