Evalkeeper
    Preparing search index...

    Function rateQueue

    • One rater's queue over a suite's cases: the next case to rate (the oldest one they haven't rated or skipped) and how far along they are. Answers other people gave don't take a case out of the queue: each rater gives their own. Retired cases are left out.

      Parameters

      • cases: readonly CaseRecord[]

        The suite's cases, as store.listCases returns them.

      • raterId: string

        The person rating, as your app identifies them.

      Returns RateQueue

      const queue = rateQueue(await store.listCases("ticket_routing"), admin.id);
      if (queue.next) showInputOnly(queue.next.input);