Skip to content

Forward the curation desk roster write routes #100

Description

@feruzm

ecency/esync-py#59 makes the curator roster writable so the database can be the single source of truth for who curates. The gateway needs to forward the three new admin-only routes, the same way it forwards every other desk write:

  • POST /private-api/curation-desk/roster-list -> curation/desk/roster/list
  • POST /private-api/curation-desk/roster-set -> curation/desk/roster/set
  • POST /private-api/curation-desk/roster-retire -> curation/desk/roster/retire

The existing GET /private-api/curation-desk/roster stays as it is: it is edge-cached for 10 minutes and must not start carrying notes, added_by or retired rows, which is why the private view is a POST.

One difference from the read routes: rules is refused rather than trimmed. A read filter with an unknown value is dropped so the backend applies its default, but an admin who sets a rule must not be told it was saved when it was discarded.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions