Skip to content

fix(offerings): slug 锁定错误带被拒新值(lib 部分,补 #486 漏提) - #488

Merged
sundevilyang merged 3 commits into
developfrom
fix/slug-lock-error-value-lib
Sep 9, 2026
Merged

fix(offerings): slug 锁定错误带被拒新值(lib 部分,补 #486 漏提)#488
sundevilyang merged 3 commits into
developfrom
fix/slug-lock-error-value-lib

Conversation

@sundevilyang

Copy link
Copy Markdown
Contributor

事故补救

8c56b538(#486)因 format gate 拦截时清空 stage,只提交了 test 断言,
course.ex/event.ex 的实际修复漏提——develop 上 event_slug_test 断言
Value: "new-slug" 无对应实现,当前为红

本 PR 补上 lib 两文件(与 #486 描述一致的 +6 行)。

验证:本地合流后 event_slug 11 passed + courses 16 passed。

#486 (8c56b53) 因 format gate 拦截清空 stage,只带上了 test 断言,
course.ex/event.ex 的实际修复漏提——develop 上 event_slug_test 断言
Value: "new-slug" 无对应实现。本 commit 补上 lib 两文件。
Ash keyword add_error 不传 :value 时 InvalidAttribute.value 恒为 nil,
生产排障无法区分「confirm 重放丢参数」与「锁定规则正确拦截」
(2026-09-09 物理课实例:参数链路健康,误判成疑似 bug 排查一轮)。

course/event 两处锁定校验补 value: get_attribute(:slug);
open 后改 slug 用例断言消息含 Value: "new-slug" 防回归。
@sundevilyang
sundevilyang merged commit 22e4828 into develop Sep 9, 2026
6 checks passed
@sundevilyang
sundevilyang deleted the fix/slug-lock-error-value-lib branch September 9, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant