Commit Graph
26 Commits
Author SHA1 Message Date
jiang 682c26fddd feat(timeseries): unify element history queries
Generic Container CI/CD / test-build-publish (push) Successful in 2m10s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 2m10s
2026-09-14 12:30:41 +08:00
jiang 5966d039de refactor(backend)!: separate algorithm and data layers
Reorganize algorithm packages by business responsibility, move orchestration into services, and keep database access behind pooled repositories.

Harden analysis API validation, remove unsafe legacy simulation endpoints, and add regression and architecture boundary coverage.

BREAKING CHANGE: legacy algorithm module paths and obsolete simulation endpoints are removed.
2026-09-04 17:30:55 +08:00
jiang 9b095c7439 refactor(db)!: clean up business SQL access
- make realtime replacement and analysis result writes transactional\n- consolidate SCADA repositories and remove process-global project state\n- validate SCADA batches and use indexed GIS-backed business queries\n\nBREAKING CHANGE: remove the public analysis result writer and the pipeline-health network_name query parameter.
2026-08-28 11:37:36 +08:00
jiang b74799a39d refactor(db)!: finalize pooled WNDB v2 migration 2026-08-27 17:26:22 +08:00
jiang fa188af0b1 refactor(db)!: adopt project-routed pooled databases
Reorganize WNDB by responsibility and remove legacy scheme endpoints.\n\nRoute analysis and time-series access through project pools, preserve transactional realtime replacement, and refresh GIS materialized views after writes.\n\nAdd database architecture documentation, live pooling coverage, API contract updates, and executable container verification.\n\nBREAKING CHANGE: legacy scheme APIs and flat app.native.wndb module imports are removed.
2026-08-25 18:35:05 +08:00
jiang 6b09662de6 refactor(storage): route project DSNs and remove legacy backends 2026-08-18 18:29:09 +08:00
jiang 2581631b51 feat(simulation): 支持冲洗阀门状态与设置值
Generic Container CI/CD / test-build-publish (push) Successful in 2m39s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 2m40s
2026-08-17 18:28:57 +08:00
jiang 2b5f9b8514 fix(simulation): use report step for schemes 2026-07-16 15:47:26 +08:00
jiang 775ecb8a58 fix(simulation): use hydraulic timestep 2026-07-16 14:16:06 +08:00
jiang b9410b0ff3 统一前后端时间时区请求 2026-06-03 11:17:37 +08:00
jiang 7c44654195 实现多进程 epanet 模拟,不保留临时文件 2026-03-18 16:56:44 +08:00
jiang 8c7d77e6ee 将 from app.services.tjnetwork import * 改为显式导入 2026-03-09 17:51:12 +08:00
jiang 6eec6c04de 调整 epanet 从 services 迁到 infra 2026-03-09 16:11:29 +08:00
jiang 747b4cd229 补全 services/tjnetwork.py 的 Facade 覆盖,把绕过的 8 处直接引用都收归到 tjnetwork.py 导出 2026-03-09 14:45:30 +08:00
jiang ed1eb74cfb 将 postgresql_info.py 移出 native/,合并到 core/config.py 或 infra/db/,便于后续项目环境变量读取发生变化 2026-03-09 14:41:50 +08:00
jiang 20ab08e206 将 native/api/ 改名为 native/wndb/,避免与 Web API 层命名冲突 2026-03-09 12:13:27 +08:00
jiang e7a3aec02f 添加native.api源码;临时处理run_simulation中iot数据库name的判断 2026-03-03 09:47:13 +08:00
jiang eb45e4aaa5 调整代码,支持项目切换,打开不同数据库的连接 2026-02-11 10:42:40 +08:00
jiang 63b31b46b9 修复管道清洗算法流量单位取值bug 2026-02-06 17:46:56 +08:00
jiang 6434cae21c 统一scheme_type命名 2026-02-05 15:39:56 +08:00
jiang 2794114000 统一scheme_name命名规则 2026-02-05 10:47:38 +08:00
jiang 9037bf317b 调整epanet工具目录结构;联通前端水质分析模块功能;新建 readme.md 2026-01-30 15:24:56 +08:00
jiang 0d139f96f8 暂存文件的引用修复 2026-01-22 17:00:10 +08:00
jiang 5986a20cc3 修正引用路径;恢复project_info.py到service目录,新增config/project_info.yml配置文件 2026-01-21 17:41:52 +08:00
jiang 6c0f7d821c 修改infra内容;移动project_info到config内 2026-01-21 17:20:24 +08:00
jiang c56f2fd1db 重构现代化 FastAPI 后端项目框架 2026-01-21 16:50:57 +08:00