Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Description
Why?
Registries that let users add service types (#235, mode open) can get messy. Registries with an admin-controlled list (controlled) need out-of-band communication for every new type. A third mode lets users propose types that an admin approves in the app.
What?
Follows the verification pattern (#64, #111):
- Mode
moderatedfor service types:- New types from non-admins, added explicitly or through a service with a new type, are stored as pending, with their creator.
- Admins' types are approved at once.
- Pending services: services that use a pending type are pending too.
- Visibility:
- Pending types and services are hidden from
GET /services,GET /services/{id}andGET /services/typesfor everyone except admins and their creators (for services: users with a role on them). - Expose the pending state like verifications, e.g.
GET /approvals(or a consistent name) listing pending types and services the caller may see.
- Pending types and services are hidden from
- Approval:
- Admins approve a type, e.g.
PUT /services/types/approvalwith the type, or a design consistent with feat: register and control service types #235. Approval lists the type and every service that uses it. - There's no "unapprove" endpoint; admins delete instead (types only when unused, as in feat: register and control service types #235).
- Admins approve a type, e.g.
- While pending:
- Owners can't edit a pending service (
409with a clear detail), to avoid races with the approval, but they can delete it. - Creators can't remove pending types (as in feat: register and control service types #235, only admins remove types).
- Owners can't edit a pending service (
GET /mereports whether the caller's new types will be pending.
Acceptance criteria
- In
moderatedmode, types and services that non-admins add stay invisible to others until an admin approves them; approval lists them like any other. - Owners can delete, but not edit, their pending services.
Blocked by #235.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Activity