feat: 2026-04-15~04-20 累积变更基线 — 多主线合流
主线 1: rns1-customer-coach-api + 04-miniapp-core-business 后端实施
- 新增 GET /xcx/coaches/{id}/banner 轻量接口
- performance/records 加 coach_id 参数 + view_board_coach 权限分流
- coach/customer/performance/board/task 服务层重构
- fdw_queries 结算单粒度聚合 + consumption_summary 视图统一
- task_generator 回访宽限 72h + UPSERT 替代策略 + Step 5 保底清理
- recall_detector settle_type=3 双重限制 + 门店级 resolved
主线 2: 小程序权限分流 + 新增 coach-service-records 管理者视角业绩明细页
- perf-progress 共享模块去重 task-list/coach-detail 动画逻辑
- isScattered 散客标记端到端
- foodDetail/phoneFull/creator* 字段透传
主线 3: P19 指数回测框架 Phase 1+2
- 3 个指数表 stat_date 日快照模式
- 新增 DWS_INDEX_BACKFILL / DWS_TASK_SIMULATION 工具任务
- task_engine 升级 HTTP 实时 + 推演回测双模式
主线 4: Core 维度层启用
- 新增 CORE_DIM_SYNC 任务(DWD → core 4 维度表)
- 修复 app 视图空查询问题
主线 5: member_project_tag 改为 LAST_30_VISITS 消费次数窗口
主线 6: 2 个迁移 SQL 已执行(stat_date + member_project_tag 新窗口)
- schema 基线与 DDL 快照同步
主线 7: 开发机路径迁移 C:\NeoZQYY → C:\Project\NeoZQYY(约 95% 改动量)
附带: 新建运维脚本(churned_customer_report / simulate_historical_tasks /
backfill_index_snapshots)+ tools/task-analysis/ 任务分析工具
合计 157 文件。未包含中间产物(tmp/ .playwright-mcp/ inspect-* excel/sheet 分析 txt)。
审计记录见下一个 commit。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,8 +15,8 @@ from hypothesis import given, settings, assume
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# DDL 基线文件在 ETL schema 重构后已删除,跳过整个模块
|
||||
_CORE_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
_CORE_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
if not _CORE_SQL.exists() or not _DWD_SQL.exists():
|
||||
pytest.skip(
|
||||
"DDL 基线文件 core.sql / dwd.sql 不存在(ETL schema 重构后已删除)",
|
||||
@@ -63,8 +63,8 @@ def _parse_tables(sql_text: str) -> dict[str, int]:
|
||||
# 加载 SQL 文件并建立映射
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
_CORE_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
_CORE_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\core.sql")
|
||||
_DWD_SQL = Path(r"C:\Project\NeoZQYY\db\etl_feiqiu\schemas\dwd.sql")
|
||||
|
||||
_core_tables = _parse_tables(_CORE_SQL.read_text(encoding="utf-8"))
|
||||
_dwd_tables = _parse_tables(_DWD_SQL.read_text(encoding="utf-8"))
|
||||
|
||||
@@ -20,7 +20,7 @@ WORKSPACE_MEMBERS = [
|
||||
"packages/shared",
|
||||
]
|
||||
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
|
||||
@settings(max_examples=100)
|
||||
|
||||
@@ -14,7 +14,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# Monorepo 根目录
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
# 一级目录列表(需求 1.5 定义)
|
||||
# 仅包含实际存在的一级目录
|
||||
|
||||
@@ -22,7 +22,7 @@ from hypothesis import given, settings, assume
|
||||
from hypothesis.strategies import sampled_from, integers
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────────────
|
||||
SCHEMAS_DIR = os.path.join(r"C:\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
SCHEMAS_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
APP_SQL = os.path.join(SCHEMAS_DIR, "app.sql")
|
||||
|
||||
# DDL 基线文件在 ETL schema 重构后已删除,跳过整个模块
|
||||
|
||||
@@ -15,8 +15,8 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
SCHEMAS_DIR = os.path.join(r"C:\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
ZQYY_APP_DIR = os.path.join(r"C:\NeoZQYY", "db", "zqyy_app", "schemas")
|
||||
SCHEMAS_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "etl_feiqiu", "schemas")
|
||||
ZQYY_APP_DIR = os.path.join(r"C:\Project\NeoZQYY", "db", "zqyy_app", "schemas")
|
||||
|
||||
APP_SQL = os.path.join(SCHEMAS_DIR, "app.sql")
|
||||
DWS_SQL = os.path.join(SCHEMAS_DIR, "dws.sql")
|
||||
|
||||
@@ -19,7 +19,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
STEERING_DIR = os.path.join(MONOREPO_ROOT, ".kiro", "steering")
|
||||
|
||||
# 旧仓库路径模式(需要检测并确认已清除的字符串)
|
||||
|
||||
@@ -18,7 +18,7 @@ from hypothesis import given, settings
|
||||
from hypothesis.strategies import sampled_from
|
||||
|
||||
# ── 路径常量 ──────────────────────────────────────────────
|
||||
MONOREPO_ROOT = r"C:\NeoZQYY"
|
||||
MONOREPO_ROOT = r"C:\Project\NeoZQYY"
|
||||
|
||||
DB_CONFIGS = {
|
||||
"etl_feiqiu": {
|
||||
|
||||
Reference in New Issue
Block a user