Tags: dataelement/bisheng
Tags
fix(cofco): keep ticked files when the knowledge-space Q&A input gets… … focus Since 3.0 the COFCO line cleared the ticked files the moment the Q&A input got focus. The ticked set is meant to be the Q&A scope, shown as a grey reference strip above the input. Every v2.6 COFCO release from 0804 had this. No v3.0 release did: 9869a83 was a backend approval-guard fix, but it also swapped this dock for the mainline copy, which never had the feature. Take the dock from Kinyoo's restore on the 923 line (93da17c). Leave out that commit's AiChatInput and AttachmentBar changes. Every chat input shares them, and this line has since moved them to the new attachment layout. Full tsc on the client shows no new errors and clears the TS2322 at pages/knowledge/index.tsx, where the page has been passing selectedContent to a dock that no longer took it. Lint and the vite build pass.
fix(cofco): restore the F045 hooks the 3.0 merge dropped The 2026-09-01 merge rebuilt knowledge_space_service.py from the 3.0 copy and lost two F045 hooks without a conflict: - Department spaces showed the creating super admin as creator again. They now show the space admin, drop the avatar, and the super admin no longer gets the CREATOR role. - Joining a department space with no admin went through, leaving a request nobody could approve. It is blocked again. The F045 suite covers DepartmentKnowledgeSpaceService on its own, so it never noticed. The new guard tests pin the hooks themselves.
merge: sync the next main-line batch into the next cofco batch # Conflicts: # src/backend/bisheng/knowledge/domain/services/knowledge_space_service.py
归档:主线本期发版分支 feat/3.0.0-beta1-test 删除前的最后状态 删除原因:2026-09-15 这条分支被错误快进到下一批,开放 API 的提交与授权模型 f048-v5 一并进入,而客户环境登记的是 f048-v4-contextual-departments, 导致启动即报 authorization_model_migration_required。本期发版改用从快进前 提交另开的 feat/3.0.0-beta1-batch1。 删除时已核对:分支上只有 641687a (perf: optimize space children reads) 按 SHA 算是独有,其内容已在 batch1 上(24 个文件中 18 个逐字节相同, 其余 6 个的差异来自 batch1 后续改动);其他提交均可从 feat/3.0.0-beta1 到达。 留此 tag 是为了保住 09-15 事故现场的坐标,不作为发版用途。
归档:中粮本期发版分支 feat/cofco-909-3.0.0-beta1-test 删除前的最后状态 删除原因同主线:2026-09-15 被错误快进,授权模型随之变为 f048-v5。 本期发版改用 feat/cofco-909-3.0.0-beta1-batch1。 删除时已核对:该分支零个独有提交,每个提交都可从 feat/cofco-909-3.0.0-beta1 或 -batch1 到达。 留此 tag 是为了保住事故现场的坐标,不作为发版用途。
COFCO 3.0.0-beta1 customization package 0916 Branch feat/cofco-909-3.0.0-beta1-test at b2e79cf. Since v3.0.0-cofco-0915: - a task turn no longer blanks the pane when the handoff binds its chat id, and starting a new chat afterwards returns to the welcome page - the knowledge-space download button is offered on every reviewed file; a refusal now arrives as the server's own wording instead of a generic failure - the video fullscreen button is gone: asking for fullscreen crashes the customer's WeCom-based desktop client outright (reported to Tencent) Cut from the test branch, which is four commits behind feat/cofco-909-3.0.0-beta1: this package does NOT carry aad99a4 (the AI access page's local-assistant wording and self-reporting install command), which v3.0.0-cofco-0915a does. Authorization model f048-v5, unchanged since v3.0.0-cofco-0914. An environment already on f048-v5 needs no migration; one still on an earlier model must run scripts/publish_authorization_model_change.py before the API will start.
本期发版包(batch1线),授权模型 f048-v4-contextual-departments 授权模型与 v3.0.0-cofco-0916a 相同(校验和 1898712a...),与客户 OpenFGA store 登记的一致, 换镜像即可,不需要运行任何迁移或发布脚本。 相对 0916a 的改动,全部围绕「权限目录里停用某个动作会打穿页面」这一类问题: - 目录里停用一个动作后,空间详情接口返回 25001,前端把任何失败都显示成 「该知识空间已失效或被删除」并跳回广场。列举用户持有哪些动作时, 停用的动作应当缺席而不是报错;执行路径的拦截未改动。 - 空间详情加载失败不再一律跳广场:只有服务端明确说空间不存在(18000) 或无权查看(18040)才离开页面,其余错误留在原地并显示真实报错。 - 上传入口改为读取「调用者持有哪些动作」,不再逐个动作断言, 消除了每次进入空间时弹出的英文报错提示。 - 中粮独有:下载动作在目录中被整体停用时隐藏下载按钮 (常显策略不变,仅在无人可下载时隐藏)。 - 文件行的操作按钮不再残留焦点环。 注意:不要用分支 tag 给客户,分支 tag 每次推代码都会被重建。
本期发版包(batch1线),授权模型 f048-v4-contextual-departments 针对客户测试环境 authorization_model_migration_required 的修复。 客户 OpenFGA store 与数据库自始至终登记的都是 f048-v4-contextual-departments (checksum 1898712a...),v5 从未在那里发布过;坏的只是 v3.0.0-cofco-0916 镜像 里带的是 v5 代码。本 tag 的模型校验和与客户 store 一致,换上去即可, 不需要运行任何迁移或发布脚本。 已在 109 上按客户环境演练:v5 镜像 migration_required=True, 换回本模型 migration_required=False,前后 store 一行未动。 内容:3.0.0-beta1-batch1 合并(含张国庆的知识空间子项读取优化)、 知识库创建原子性、任务态新建白屏修复、工作流表单弹窗高度修复, 以及中粮独有的下载按钮常显与视频全屏按钮移除。 注意:不要再用分支 tag 给客户,分支 tag 每次推代码都会被重建。
PreviousNext