fix(cma): KR 名称污染存量清理 + 透传点护栏 (cma-kr-name-pollution-cleanup-20260916)
ci/woodpecker/push/main Pipeline was canceled
ci/woodpecker/push/main Pipeline was canceled
- kr_name.py/krName.ts: sanitize_kr_name 判据(尾部≥/≤数字≠目标值→截断;==目标值→保留) - maps.py/okr.py/okr_templates.py: 模板名/JSON→krs.title 透传点护栏 - test: 28 passed(独立复核) - 原会话因迭代上限停手,本提交代收口(工作已复核完成)
This commit is contained in:
@@ -251,6 +251,7 @@ import { ref, computed, watch, onMounted } from "vue"
|
||||
import { useRouter } from "vue-router"
|
||||
import { ElMessage } from "element-plus"
|
||||
import { okrTemplateApi } from "../../api/index"
|
||||
import { sanitizeKrName } from "../../utils/krName"
|
||||
|
||||
// ── Props ──
|
||||
const props = defineProps<{
|
||||
@@ -560,7 +561,8 @@ function nextStep() {
|
||||
krs: tmpl.preset_krs.map((kr: any) => {
|
||||
const parsed = parseKrTarget(kr.target_value)
|
||||
return {
|
||||
name: kr.name,
|
||||
// 护栏(2026-09-16):模板名 → KR 名 预填透传点;历史污染名(尾部被截断的方向值)在此规整
|
||||
name: sanitizeKrName(kr.name, kr.target_value).name,
|
||||
operator: parsed.operator,
|
||||
target_value: parsed.value,
|
||||
weight: Number(kr.weight) || 33,
|
||||
|
||||
Reference in New Issue
Block a user