Repository navigation
Conversation
…ket authorization
…as F048 resources (F022 T001-T005)
…kbenches they may see (F022 T006-T011)
…g installations (F022 T012-T016)
…on the employee side, as for skills
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.
What
企业插件、企业工作台(管理员上传到本企业市场的插件和工作台包)支持按用户 / 部门 / 用户组授权,可见即可用:
POST /api/v1/dsh/market/workbenches/access:桌面端查询已安装企业工作台是否仍可见(只返回布尔值),已登记到桌面令牌路由白名单。Why
需求「企业工作台和插件增加权限管理(用户 / 部门 / 用户组)」:只在特定岗位使用、涉及敏感数据的企业插件和工作台,不应对全员可见。
How
完整 SDD 文档:spec · design · test-cases · tasks(spec、design 经需求方确认);本版本契约
features/v3.1.0-beta2/release-contract.md(beta2 首个特性创建)。要点:dsh_market_plugin、dsh_market_workbench,同步登记全部「双胞胎清单」;「可撤销全员授权 / 系统所有」类型集合{"tool","linsight_skill"}原散落 7 处,集中为resource_lifecycle_policy.TENANT_SHARED_CAPABILITY_TYPES。reconcile_system_owned_resources确保登记(只补缺失,已登记的不动,保留管理员撤销)。batch_check_verified_business_visible(同步接口每台设备 60 秒一次,避免逐项读库);未收窄的全局超级管理员与技能同口径全部可见,租户管理员按授权。publish_authorization_model_change.py改为按代码作用域表只为 Catalog 中新出现的类型补作用域(不再写死技能),重建自定义权限级别时保留 F118 的「仅可见」字段(原脚本早于 F118 会丢失),新增只读--verify;reconcile_f048_system_owned_resources.py新增--resource-type(默认仍只处理内置工具)。§10.1 文档补充说明 F118 之后不能再用旧脚本。Test
自动化:
test/permission/test_dsh_market_resource_types.py、test_publish_authorization_model_change_f022.py、test_reconcile_system_owned_resource_types.py,test/dsh_market/test_market_permission.py、test_market_permission_api.py;test/dsh_market/conftest.py让原有市场业务测试默认全部可见。test/permission+test/dsh_market,以及受共享权限代码影响的test/tool+test/linsight+test/dsh+test/api(两边均 4020 通过 / 89 失败 / 57 收集错误,失败用例一致),新增失败 0;剩余失败为本机无数据库 / 中间件。scripts/arch-guard.sh对全部改动文件无告警;改动的 Python 文件ruff format --check通过,ruff check问题数与改动前相同。src/pages/BuildPage/dshvitest 54 通过;pnpm typecheck通过;改动文件 ESLint 通过。src/test/f048PermissionDialog.test.tsx有 1 条失败,在改动前同样失败。本机真实环境(独立 MySQL / Redis / OpenFGA / MinIO + 新旧两版后端 + 管理后台 + 桌面开发版):
--verify通过;升级后员工视图与升级前一致;管理员撤销后重跑补登记不补回;回退(恢复两库备份 + 旧版本)正常。未验证:达梦(本机无驱动,需同事环境执行补登记与回归);109 / .116 / 客户环境上线。
Related
V1.3.1)