Repository navigation
Open
4 / 114 of 11 issues completedOpen
4 / 114 of 11 issues completed
Copy link
Description
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
立卡门类别:专题父单(tracking,无 pm 状态,不派发;子卡各自定级派发)。维护者 2026-11-22 看完分诊对「专题以外的任务」的归类后说:「同意开专题」。
目标
- 「查看全部 / 修改全部」只决定能看、能改哪些记录,不再顺带把隐藏字段放开(v19 大版本)。
- 共享授权改在数据库里判断:没有 5000 条授权的上限,读、写、批量写的结果一致(ADR-0155)。
完成标准
- v19 切换完成:「查看/修改全部」不再决定字段,自动转换出
viewAllFields,现有应用行为不变;os explain、lint 和技能都讲清这三层权限。 - 共享授权在 SQL、内存驱动和 PostgreSQL 上结果一致,CI 跑 PostgreSQL 测试,云端仓库普查完成。
- 按条件批量更新、删除时,「修改全部」和编辑共享都生效,大批量不再每行单独判定一次。
子卡
字段这条线:
- Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only
viewAllFieldsbit carries the admin channel (end state, v19) #34365 决定卡(已裁 A),其下有 security:os explainnames the channel that opened a field — own row, another set's row, the default, View All, Modify All orviewAllFields(step 2 of #34365, additive) #36051、lint: warn when a permission set's View All / Modify All re-opens a field another set hides, and steer high-sensitivity fields torequiredPermissions(step 2 of #34365) #36052、skills: teach the three permission axes —viewAllFieldsfor "sees every field", field rows for role-dependent fields,requiredPermissionsfor high-sensitivity fields (step 2 of #34365) #36053、security (v19 major): View All / Modify All stop voting on fields — ADR-0087 conversion addsviewAllFields: truebeside them,superuserFieldVoteandsecurity-superuser-field-mask-inertretire (step 3 of #34365, behaviour change) #36055 四张子卡。
共享授权这条线(ADR-0155):
- plugin-security: the #5492 floor deferral covers only by-id writes; a predicate (multi) update still applies
owner_only_writes, so Modify All and edit shares silently match only self-created rows #35802(p1,在做)按条件更新没有遵守「修改全部」和编辑共享。 - sharing: a predicate write asks one write verdict per candidate row, so a member bulk update over 10,000 rows owned by others costs ~5 s for no extra row; give ISharingService a bulk write-scope and verdict contract #35934 批量写每行单独判定一次,开销过大,需要批量判定接口。
- spec/objectql: the SharedRecordIds and seam docblocks still describe the share-grant list in the present tense after the switch #36121 代码说明里还在用现在时描述 5000 条授权的列表。
- cloud: the O8 census of objectstack-ai/cloud for ADR-0155 step 6 (the 5,000-grant cap retirement) #36115 云端仓库的普查(第 6 步的前提)。
- driver-sql: measure id = ANY(ARRAY(SELECT …)) against the share-grant semi-join for a caller with no grant on PostgreSQL (ADR-0155 step 6 cost) #36034 在 PostgreSQL 上实测两种写法,看没有授权的调用者各要付出多少代价。
- ci: run plugin-sharing's share-grant switch test against live PostgreSQL (OS_TEST_POSTGRES_URL) in CI #36120 CI 里对 PostgreSQL 跑共享授权的切换测试。
- ADR-0155 step 4 (driver-memory): evaluate the share-grant leaf in process, on reads and the predicate update path #35873(暂停)内存驱动在进程内判断共享授权。内存驱动整体暂停([裁决] driver-memory / driver-mongodb 投入冻结 —— 维护者 2026-08-05 口径(跨单锚点) #5499),所以本卡保持暂停。
待维护者定的
- security (v19 major): View All / Modify All stop voting on fields — ADR-0087 conversion adds
viewAllFields: truebeside them,superuserFieldVoteandsecurity-superuser-field-mask-inertretire (step 3 of #34365, behaviour change) #36055:v19 的行为变更什么时候开工。裁定只定了终态,没有定开工时间。本卡要等 lint: warn when a permission set's View All / Modify All re-opens a field another set hides, and steer high-sensitivity fields torequiredPermissions(step 2 of #34365) #36052。 - driver-sql: measure id = ANY(ARRAY(SELECT …)) against the share-grant semi-join for a caller with no grant on PostgreSQL (ADR-0155 step 6 cost) #36034:实测后改用 ANY(ARRAY()) 写法,还是保留现在的半连接。卡里给的代价:10 万行时总数查询从约 1.5 毫秒到 7 毫秒,100 万行时从 8 毫秒到 42 毫秒。
- sharing: a predicate write asks one write verdict per candidate row, so a member bulk update over 10,000 rows owned by others costs ~5 s for no extra row; give ISharingService a bulk write-scope and verdict contract #35934:给共享服务加批量判定的接口(属于契约变更),以及 ci: run plugin-sharing's share-grant switch test against live PostgreSQL (OS_TEST_POSTGRES_URL) in CI #36120 放进哪个 CI 任务。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 11 sub-issues
Activity
viewAllFieldsbit carries the admin channel (end state, v19) #34365owner_only_writes, so Modify All and edit shares silently match only self-created rows #35802