feat(product-commerce): 系列聚合去重与采集开关两层语义
配置来源收敛 - 系列平台编码 tm/jd/dy/jd_self 与 9 类飞书地址改为整系列并集去重后挂锚点, 子款编码保留在 series.platform_ids 备查;多表冲突保留最高优先级并告警 - 写表脚本(当日/天猫主图/京东主图)去掉本地 JSON 回退,地址缺失或读取失败 直接 fail closed,避免库与表地址不一致被静默掩盖 - 测试注入 records_provider 时禁用配置缓存读写,防止假数据写入生产快照 采集开关(dim_style.collect_enabled) - 锚点为系列总开关:false 则整系列不采 - 锚点为 true 时,子款自身 false 仅把自己的 ERP 编码排除出聚合,其余子款照常 - 排除结果记录在 series.erp_excluded 并在运行时提示 聚水潭全店铺日报防错 - 列布局 fail closed、行 td 数校验、满页判定 + 总页数兜底、值域交叉校验 - 新增单日总量闸:超近 14 天中位数 8 倍拒绝落库 其他 - 新增电商费用归集配置 ad_cost_rollup.json 与积分兑换周报采集 - 店铺情报、供应链到货同步、通知路由与相关配置/文档同步更新 - 忽略本地 dsh workbench 脚手架(含 node_modules)
This commit is contained in:
1 parent
2f31d5872f
commit
622a609800
66 files changed
+4156
-469
No files matched your search
@@ -80,8 +80,19 @@ def test_baseline_contains_all_provided_people_and_routable_capabilities(
|
||||
assert mobiles["wang_yunlong"] == "+8613663785145"
|
||||
assert mobiles["stock_alert_user_19832771651"] == "+8619832771651"
|
||||
assert set(payload["capabilities"]) == set(NOTIFICATION_CAPABILITIES)
|
||||
assert set(payload["routes"]) == {"product.online_stock_alert.daily"}
|
||||
assert set(payload["routes"]) == {
|
||||
"product.online_stock_alert.daily",
|
||||
"product.points_exchange.weekly",
|
||||
}
|
||||
assert payload["routes"]["product.online_stock_alert.daily"]["enabled"] is True
|
||||
exchange_route = payload["routes"]["product.points_exchange.weekly"]
|
||||
assert exchange_route["enabled"] is True
|
||||
assert exchange_route["person_ids"] == payload["routes"][
|
||||
"product.online_stock_alert.daily"
|
||||
]["person_ids"]
|
||||
assert exchange_route["app_profile"] == payload["routes"][
|
||||
"product.online_stock_alert.daily"
|
||||
]["app_profile"]
|
||||
assert len(revision) == 64
|
||||
|
||||
wang = payload["people"]["wang_yunlong"]
|
||||
|
||||
Reference in new issue
Block a user