checkpoint: 架构治理四件套——统一 async / 测试真 PG / Redis 降级可选 / DPB 扶正
- A1 业务层统一 async:gencode 表内省改 run_sync 异步(不再阻塞事件循环)、 check_db 改 async_engine、dict_util 启动预热异步载入;psycopg 降为 APScheduler SQLAlchemyJobStore 专用同步孤岛(注释标注) - A2 测试真 PG 化:conftest 弃 SQLite + mock Redis,改连真实 PG16(dpb_test)+ Redis(number_gen advisory lock 路径真被测);新增 docker/test-compose.yaml 测试依赖栈(postgres:16:5433 + redis:7:6380);run_ci 前置探测 + 容器兜底, pytest -m pg 10 套正式 tc 全过(真实 PG16 + Redis) - B1 Redis 启动不强依赖:redis_connect 失败降级启动,缓存类回源 DB、存储类 (会话/AI 配置/调度)经 require_redis 守卫返回 503;真机 3 阶段降级测试 PASS=11 FAIL=0(独立 Redis 6390 + 后端 8091,不动共享 dev 服务) - C 扶正 DPB:后端横幅/日志(dpb.log)/README/pyproject/ai_factory agent 名、 前端 package.json/署名注释/链接文案/deploy.sh/docker 注释全部去 fastapiadmin; grep backend/app + frontend/web/src 零残留 - 验证:全量回归 pass=72 fail=0
This commit is contained in:
@@ -159,7 +159,7 @@
|
||||
<FaCardBanner
|
||||
:image="bannerIcon4"
|
||||
title="版本更新提醒"
|
||||
description="FastapiAdmin v3.0.0 已发布,包含优化和新功能。"
|
||||
description="DPB 桃育种系统 v3.0.0 已发布,包含优化和新功能。"
|
||||
:button="{
|
||||
show: true,
|
||||
text: '立即更新',
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<h1 class="screen-title">
|
||||
<span class="deco-line" />
|
||||
FastapiAdmin · 智能运营数据监控平台
|
||||
DPB 桃育种系统 · 育种数据监测平台
|
||||
<span class="deco-line" />
|
||||
</h1>
|
||||
<div class="header-right">
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
<div class="manual-html" @click.capture="handleAnchorClick">
|
||||
<div class="manual-html__inner">
|
||||
<h1>
|
||||
FastapiAdmin 功能点清单
|
||||
DPB 桃育种系统 功能点清单
|
||||
<small>用于全功能测试验收,按模块逐页列出所有可操作元素</small>
|
||||
</h1>
|
||||
|
||||
@@ -802,7 +802,7 @@
|
||||
class="manual-footer-note mt-10 border-t border-g-200 pt-6 text-center text-xs text-g-500 dark:border-g-700 dark:text-g-400"
|
||||
>
|
||||
<p>
|
||||
FastapiAdmin 功能点清单(完整性)—
|
||||
DPB 桃育种系统 功能点清单(完整性)—
|
||||
与当前代码中已实现界面项对齐,用于逐项核对是否漏测,不评价体验优劣。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -36,7 +36,7 @@ interface Emits {
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
const promptCards = [
|
||||
{ title: "系统介绍", body: "请介绍一下FastApiAdmin系统", prompt: "请介绍一下FastApiAdmin系统" },
|
||||
{ title: "系统介绍", body: "请介绍一下DPB桃育种系统", prompt: "请介绍一下DPB桃育种系统" },
|
||||
{ title: "开发指导", body: "如何在系统中创建新的模块?", prompt: "如何在系统中创建新的模块?" },
|
||||
{
|
||||
title: "权限管理",
|
||||
|
||||
@@ -488,10 +488,9 @@ let notificationInstance: ReturnType<typeof msg.notify> | null = null;
|
||||
|
||||
const showVoteNotification = () => {
|
||||
notificationInstance = msg.notify({
|
||||
title: "⭐ FastapiAdmin 完全开源 · 期待您的 Star 支持 🙏",
|
||||
message: `项目持续迭代中,若对您有所帮助,欢迎点亮 Star 支持!
|
||||
<br/><a href="https://github.com/fastapiadmin/FastapiAdmin" target="_blank" style="color: var(--el-color-primary); text-decoration: none; font-weight: 500;">Github仓库 →</a>
|
||||
<br/><a href="https://gitee.com/fastapiadmin/FastapiAdmin" target="_blank" style="color: var(--el-color-warning); text-decoration: none; font-weight: 500;">Gitee仓库 →</a>`,
|
||||
title: "⭐ DPB 桃育种系统 · 功能持续迭代中 🙏",
|
||||
message: `项目持续迭代中,若有问题或建议欢迎反馈!
|
||||
<br/><a href="http://123.207.9.209:3000/gonsun/dpb" target="_blank" style="color: var(--el-color-primary); text-decoration: none; font-weight: 500;">项目仓库 →</a>`,
|
||||
type: "success",
|
||||
position:
|
||||
panelAlign.value === "right" || panelAlign.value === "center"
|
||||
|
||||
Reference in New Issue
Block a user