fix(f054): 跟踪 IKB8X9 — 建应用 owner projection 走 version-0 路径, 不再撞 25008 - #2376
Open
yaojin3616 wants to merge 1 commit into
Open
fix(f054): 跟踪 IKB8X9 — 建应用 owner projection 走 version-0 路径, 不再撞 25008#2376yaojin3616 wants to merge 1 commit into
yaojin3616 wants to merge 1 commit into
Conversation
The fix is already on 3.0-vibe (commits 356b41f + 037d19c); this commit just adds a docstring pointer so the next on-caller who hits 25008 "Resource permission projection is not current" on a fresh deployment can find the original issue and the explanation without chasing the symptom through OpenFGA. by AI (autopilot 99a8fd03-9cb3-463b-9707-eb668e480c98, run 01a03d2d-55ff-7351-a18c-db451dc0f4b0)
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.
关联 Issue
根因
F054 应用上线流程中, `create_draft` 创建 app 行后调用 `_project_owner` → `adapter.load_permission_record(app_id)`, 而 `load` 内部调用 `get_permission_version` 去查询该 app 的 CURRENT 投影版本——但这次调用本身正是要 创建 那个投影, 版本此刻还不存在, 因此抛出 25008, 然后应用行被回滚, 每一次首发都失败。
工作流/助手适配器的 docstring 已写明「创建路径不得先 load, 直接在 version 0 上构造 target」, F054 的 app 适配器没照做。
修复
修复已在 3.0-vibe 分支以 commit 356b41f + 037d19c 的形式落地, 本 PR 只是把这两条 fix 单独提出来便于跟踪、关联 IKB8X9, 并在 docstring 里加一条 Gitee 链接便于后续 on-call 找到原始 issue。
验证
`583 passed` (commit 356b41f 的测试报告)。
影响
关联