MCPcopy
hub / github.com/sorry-cypress/sorry-cypress / getSpecsForGroup

Function getSpecsForGroup

packages/director/src/execution/utils.ts:5–6  ·  view source on GitHub ↗
(run: Run, groupId: string)

Source from the content-addressed store, hash-verified

3import { difference } from 'lodash';
4
5export const getSpecsForGroup = (run: Run, groupId: string) =>
6 run.specs.filter((spec) => spec.groupId === groupId);
7export const getClaimedSpecs = (run: Run, groupId: string) =>
8 getSpecsForGroup(run, groupId).filter((s) => s.claimedAt);
9export const getFirstUnclaimedSpec = (run: Run, groupId: string) =>

Callers 8

createRunFunction · 0.90
getNextTaskFunction · 0.90
createRunFunction · 0.90
getNextTaskFunction · 0.90
getClaimedSpecsFunction · 0.85
getFirstUnclaimedSpecFunction · 0.85
getFailedSpecsFunction · 0.85
getNewSpecsInGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected