refactor(slim-r3): 删除零引用死模块——keywordshare/debug/PublicWorkbenchClientVersion 三线 40 件
Project-Slimming 第三轮收尾执行(用户拍板「零引用的也都要删除」): 定谳依据=6.4 天生产访问日志零流量(970 万行单遍对撞,26 UNIQUE 前缀防撞车) +四树代码零引用(后端类名/包名/字符串、admin、用户端、app_client 全扫) +V163 建菜单→V165 撤菜单的历史链(功能入口 10 月底已下线,Controller 成孤儿)。 删除(40 件): - modules/keywordshare 整模块 31 类+4 mapper XML+KeywordShareServiceTest (后管 V165 已撤菜单、app_client 同步链 kw_share_api 亦无调用方; biz_keyword_share 等表按「已应用迁移不可回改」保留在库) - modules/debug 2 支控制器(/debug/request-info、/debug/task-recovery/*) - workbenchclient/controller/PublicWorkbenchClientVersionController (/api/workbench-client/version/latest:app_client 实际走 /api/version/latest, admin 侧仅文案引用,无任何真实调用方) - config/KeywordShareSyncProperties(唯一消费方 KeywordShareService 同批删) 同步编辑: - AdminApiGuardFilter:摘 DEBUG_PREFIX 前缀(常量/javadoc/审计日志块/requiresCredential/ guardedPrefixes 五处);ApiGuardCoverageAuditor:METHOD_GUARDED_PATHS 摘 /api/keyword-share - PropertiesConfig 摘 KeywordShareSyncProperties.class;application.yml 与 application-local.example.yml 摘 keyword-share-sync 段与两个 env - 台账两处扣减:XML_SELECT_TOTAL 114→103(11 select)、XML_STATEMENT_TOTAL 164→147 (11 select+4 insert+1 delete);MigratedSqlEquivalenceTest.NOT_MIGRATED 摘 12 条点名 (tsv 基准账本零 KeywordShare 行,LEDGER_ROWS/LEDGER_SELECTS 不动) - PendingPhase5ReadPathTest 摘 P1-B2(RAND 断言随 XML 删);ApiGuardCoverageAuditorTest 前缀总数 25→24;AdminApiGuardFilterTest 摘 4 支 /debug 用例与 2 条边界 URI - admin:workbench-client-api 死常量、页面头注释与 page-hint、operation-guides 指南文案 摘被删端点字样;align-workbench-client.test 摘 3 条对应断言 零行为影响:全部删除件在 6.4 天窗口内零流量;守卫过滤器行为对现存前缀不变 (/api/admin、用户态、自助清单原样)。
This commit is contained in:
@@ -94,7 +94,9 @@ class MigratedSqlEquivalenceTest {
|
||||
// 113 → 114:2026-11-15 商品上架配额计数(b9b66bcb)在 JdProductMapper 新写 1 条只读 select
|
||||
//(countByUserIds,按 owner uid 集计 biz_jd_product 行数),逐条点名进 NOT_MIGRATED。
|
||||
// 该笔当时只点编译没跑整量、两处账本都漏记,2026-11-15 发版前整量抓到补记。
|
||||
private static final int XML_SELECT_TOTAL = 114;
|
||||
// 114 → 103:keywordshare 模块整体下线(Project-Slimming 第三轮:6.4 天访问日志零流量、
|
||||
// 四树零引用、V165 已撤菜单),随删 11 条 select 与下方 NOT_MIGRATED 的 12 条点名。
|
||||
private static final int XML_SELECT_TOTAL = 103;
|
||||
|
||||
/**
|
||||
* 不是「从注解搬过来」的语句:注解时代没有原文可对撞,等价性这支只能跳过它们。
|
||||
@@ -112,21 +114,6 @@ class MigratedSqlEquivalenceTest {
|
||||
"UserSecretUsageMapper#addTokens",
|
||||
// 失败任务重试:INSERT ... SELECT 复制采集明细行,非注解迁移件。
|
||||
"CollectDataItemMapper#copyItemsForRetry",
|
||||
// keywordshare 模块(五国关键词共享网页化,2026-10-23)新写 11 条 select。
|
||||
"KeywordShareMapper#countHit",
|
||||
"KeywordShareMapper#selectRows",
|
||||
"KeywordShareMapper#selectRandomUnused",
|
||||
"KeywordShareMapper#countDupKeywords",
|
||||
"KeywordShareMapper#selectFilterCountries",
|
||||
"KeywordShareMapper#selectFilterTreeRows",
|
||||
"KeywordShareMapper#selectCountryCounts",
|
||||
"KeywordShareMapper#selectCategoryCounts",
|
||||
"KeywordShareMapper#selectSubCategoryCounts",
|
||||
"KeywordShareMapper#selectCategoryL3Counts",
|
||||
"KeywordShareMapper#selectExistingKeywords",
|
||||
// 工作台客户端全量同步新写的词本体 UPSERT:注解时代没有原文可对撞,按新写语句点名留痕。
|
||||
// 它是 insert 不是 select,故 XML_SELECT_TOTAL 不随之变。
|
||||
"KeywordShareMapper#upsertBatchFromSync",
|
||||
// brandgating 模块(品牌Gating库并入管理后台,2026-10-23)新写 8 条 select。
|
||||
"BrandGatingMapper#countByFilter",
|
||||
"BrandGatingMapper#selectRows",
|
||||
|
||||
Reference in New Issue
Block a user