fix(wf@3d15949): #33 合并 TS6133 + banned_items/canDisable LSP - #35
Closed
cursor[bot] wants to merge 2 commits into
Closed
fix(wf@3d15949): #33 合并 TS6133 + banned_items/canDisable LSP#35cursor[bot] wants to merge 2 commits into
cursor[bot] wants to merge 2 commits into
Conversation
- 删除 #32/#33 合并后未使用的 MODULE_HELP_LABEL(阻塞 sfmc build/ootb) - configs/all.banned_items 改为 string[] 并复用单资源 helpers(DRY/LSP) - resolveModuleByKey 归一化 canDisable 默认值,与 list.can_disable 同源 - service.get 保留服务端 code;ConfigManager 兼容历史 {item_id} - ootb 断言 configs/all.banned_items 元素为 string Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Jul 22, 2026
与并行 #35 对齐:service 客户端勿一律打成 internal(LSP); ootb 回归守卫 configs/all.banned_items 必须为 string[]。 Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
This was referenced Jul 22, 2026
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
main@3d15949(合入 #33)ootb 再次失败(run 29940895451):#32/#33 合并残留未使用的MODULE_HELP_LABEL,触发TS6133,sfmcworkspace build 红。同批审查(DRY · OCP · DIP · LSP · Demeter)发现并修复两处可验证 MAJOR LSP,以及相关 DRY/防御加固。
触发背景:此前 #31 合入后 ootb 失败(
module/modHELP)已由 #32/#33 修复;本 PR 修 #33 合并回归 + 残留 SOLID。审查
MODULE_HELP_LABEL与 #33paintModuleCmdAlias合并后双源,前者未删 → TS6133 阻塞 ootbpaintModuleCmdAliasconfigs/all.banned_items发{item_id},ConfigManager/AllConfigs/GET /banned_items契约是string[]→ 缓存恒空getAllConfigs复用 helpers,返回string[]canDisable时 list 报can_disable:true,resolveModuleByKey裸返回 → disable 被!undefined拦moduleCanDisable()同源归一化service.get失败一律code:"internal"(db 客户端已保留 code)code{item_id}未展开(仍为设计债):
enabledSetdb.tx两阶段读回协议验证
Test plan
ootb在本分支绿GET /api/sfmc/configs/all的banned_items为string[]canDisable的模块可POST .../disable