Skip to content

feat: approve new service types #238

Closed

Description

@uniqueg

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 moderated for 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} and GET /services/types for 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.
  • Approval:
  • While pending:
    • Owners can't edit a pending service (409 with 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).
  • GET /me reports whether the caller's new types will be pending.

Acceptance criteria

  • In moderated mode, 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.

Activity

  1. added
    priority: medium
    status: blocked
    type: feature
    workload: days
    on Oct 25, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 25, 2026
  3. removed
    status: in progress
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions