Document admin model catalog visibility bug
Staging Backend Quality Gate / validate (push) Successful in 12m51s
Staging Backend Quality Gate / publish (push) Successful in 22m36s

This commit is contained in:
Jesse_Chen
2026-08-08 14:38:01 +08:00
parent eaa2e98f75
commit f1a4db8a90
+15
View File
@@ -2505,3 +2505,18 @@
- 相关记录:BUG-134、BUG-138、BUG-139
- 复发自:无
- 修复版本:本地候选提交(未 push / deploy
## BUG-147 | staging 模型供应商保存成功但列表为空
- 状态:resolvedlocal candidatestaging migration/deploy 待验证)
- 首次发现:2026-08-08
- 最近更新:2026-08-08
- 现象:POST 保存成功但 GET providers 为空。
- 触发:self-hosted `admin_runtime` 直查五张 model 表:`model_providers``model_configs``model_config_versions``model_publish_events``model_connection_test_evidence`
- 根因:表启用 RLS 且有 SELECT grant,但缺少 `admin_runtime` SELECT policy`SECURITY DEFINER` 写成功、读被静默过滤。
- 修复:`20260808020000` migration 为 `model_providers``model_configs``model_config_versions``model_publish_events``model_connection_test_evidence` 增加仅 SELECT policy。
- 验证:focused 7/7full frontend 1071/1071lint 0 errors、3 warningsbuild 通过;`git diff --check` 通过。
- 防复发:模型管理数据库回归测试同时覆盖 `admin_runtime` 对五张 model 表的直接读取,迁移需保持 SELECT grant 与 SELECT policy 成对存在。
- 相关记录:BUG-124、BUG-135、BUG-145、BUG-146
- 复发自:无
- 修复版本:待本次 staging SHA