Files
kefu/deploy/perm-button-20261008/server-bundle/release-plan.json
T
2026-11-16 09:39:42 +08:00

79 lines
4.3 KiB
JSON

{
"release": "perm-button-20261008",
"candidateRoot": "C:/kefu",
"backendFiles": [
"wechat_rpa/rbac.py",
"wechat_rpa/admin_api.py",
"wechat_rpa/archive_api.py",
"wechat_rpa/knowledge_api.py",
"wechat_rpa/knowledge_review.py"
],
"mergeBase": "production",
"frontendDir": "admin-web/apps/web-antd/dist",
"frontendSource": "C:/wechat_rpa/admin-web/apps/web-antd/dist",
"frontendHeadBuild": "frontend-head-build",
"frontendReplaced": [
"index.html"
],
"frontendAdded": [
"css/bootstrap-DCiEhU0P.css",
"js/about--P5MF6Au.js",
"js/agents-ytAuKAYc.js",
"js/bootstrap-ricfTItx.js",
"js/center-VdUOlWyl.js",
"js/desktop-accounts-B6NHEdI9.js",
"js/exports-BrpYCNc9.js",
"js/model-catalog-DmxR3hlu.js",
"js/model-plan-B6D-zvYD.js",
"js/people-D1HPzSOH.js",
"js/permission-menu-D1v9Uvk4.js",
"js/permissions-y2x4iuvM.js",
"js/release-BHq23P2n.js",
"js/roles-DmgAKesb.js",
"js/routes-CyLbyupy.js",
"js/run-dialog-CCj23iTa.js",
"js/run-format-CRBZjQsB.js",
"js/runs-panel-CZYnbG9i.js",
"js/settings-dialog-DHiNofXO.js",
"js/storage-C-1An6Xy.js",
"js/users-BgfgztO2.js",
"jse/index-index-w6snSvNI.js"
],
"frontendNewPages": [],
"frontendRemovedPages": [],
"serverTestModules": [
"test_admin_api.ButtonPermissionTest",
"test_admin_api.PermissionMenuTest",
"test_admin_api.PermissionSeedMigrationTest",
"test_admin_api.RoleManagementTest",
"test_admin_api.PermissionEnforcementTest",
"test_admin_api.RoleCheckMigrationTest",
"test_admin_api.AuthTest",
"test_admin_api.UserApiTest",
"test_admin_api.AgentApiTest",
"test_admin_api.ConfigApiTest",
"test_admin_api.ReviewRuleConfigApiTest",
"test_admin_api.ModelTestApiTest",
"test_admin_api.ReleaseApiTest.test_reading_needs_release_read_but_writing_needs_release_write",
"test_admin_api.ReleaseApiTest.test_publishing_a_version_records_it",
"test_admin_api.StaticMountTest",
"test_knowledge_runs",
"test_knowledge",
"test_knowledge_tasks",
"test_knowledge_model_output",
"test_knowledge_review",
"test_knowledge_search",
"test_archive_api"
],
"imageTestModules": [
"test_zyt_patient_client"
],
"schemaMigration": "rows only, at startup: rbac.seed registers 37 new builtin button/page codes (28 -> 65) and, once, grants each new code to every role holding the code it was split from (implied_by). Existing codes and grants are kept, so a rollback leaves every role with what it had. RBAC tables snapshotted to rbac-before.json in preflight.",
"restartServices": [
"api",
"gateway",
"knowledge-worker"
],
"notes": "User request 2026-10-08 (screenshot of 知识加工与检索): '1.权限要精确到按钮,现在不精确 2.修复页面显示不全bug'. (1) Every button has its own permission code (model create/edit/test/delete, model-plan page+save, agent create/edit/delete/plan, desktop account policy/assign/revoke, release upload/publish, export create/download, identity bind, patient bind/unbind, storage save/test, knowledge run/control/settings/watch/edit/restore/delete/approve/reject/auto-review/publish/disable/enable/search/export, role create/edit/delete, permission-menu page+create/edit/delete, user create/role/status); old coarse codes are kept and narrowed to one button, new codes are implied by the old ones so nobody gains or loses anything at rollout; endpoints check the button's code (create-vs-edit decided by whether the id exists); the UI shows/enables each button by the same code; empty top-level menus are hidden and users without the default home page land on their first page. Also fixes PUT /api/v2/users/{id} (called update_user with a missing argument -> 500 on every role change or enable/disable). (2) The layout's content area is overflow-x hidden, so wide tables were clipped with no way to scroll: tables now scroll horizontally inside their card, headers never wrap per character, model catalog columns no longer collapse to 0, knowledge list times are short Beijing time. Backend files = kefu working tree (production == pre-change for all five). Frontend built from C:/wechat_rpa/admin-web; frontend-head-build is the same tree with this release's 22 file edits reversed (served by a vite pre-plugin, tree untouched) and its page graph equals production's except build time."
}