| … | … | @@ -11,7 +11,7 @@ |
| 11 | 11 | * set-meta |
| 12 | 12 | * |
| 13 | 13 | * View schema (Hyperbee keys): |
| 14 | | * org:{name} → { name, displayName, description, type, userId, members, resources, visibility, createdAt, updatedAt } |
| 14 | * org:{name} → { name, displayName, description, about, type, userId, members, resources, visibility, createdAt, updatedAt } |
| 15 | 15 | * grant:{grantId} → { grantId, subjectType, subjectId, grantType, groupName, resourceName, permission, ... } |
| 16 | 16 | * invite:{inviteId} → { inviteId, inviteType, targetGroup, targetResource, permission, maxUses, ... } |
| 17 | 17 | * request:{requestId} → { requestId, subjectType, subjectId, requestType, groupName, resourceName, permission, status, ... } |
| … | … | @@ -182,6 +182,11 @@ export const orgsSchema = jsonSchema({ |
| 182 | 182 | name: op.name, |
| 183 | 183 | displayName: op.displayName || op.name, |
| 184 | 184 | description: op.description || '', |
| 185 | // `about` is free-form markdown shown on the org's overview |
| 186 | // page (the README-equivalent for orgs). Optional; legacy |
| 187 | // records load with `about` undefined and the renderer treats |
| 188 | // that the same as empty. |
| 189 | about: op.about || '', |
| 185 | 190 | type: op.orgType, |
| 186 | 191 | userId: op.orgType === 'user' ? (op.userId || null) : null, |
| 187 | 192 | members: op.members || [], |
| … | … | @@ -199,6 +204,7 @@ export const orgsSchema = jsonSchema({ |
| 199 | 204 | const org = entry.value |
| 200 | 205 | if (op.displayName !== undefined) org.displayName = op.displayName |
| 201 | 206 | if (op.description !== undefined) org.description = op.description |
| 207 | if (op.about !== undefined) org.about = op.about |
| 202 | 208 | if (op.visibility !== undefined) org.visibility = op.visibility |
| 203 | 209 | org.updatedAt = op.timestamp |
| 204 | 210 | await batch.put(`org:${op.name}`, org) |