Package dev.dokimos.server.service
Class ReviewQueueService
java.lang.Object
dev.dokimos.server.service.ReviewQueueService
Surfaces run items that still need a human verdict so a reviewer can work through a single queue
instead of opening runs one at a time. An item qualifies when it has no annotation or only an
UNSURE one; the queue can be scoped to a project, experiment, or run.-
Constructor Summary
ConstructorsConstructorDescriptionReviewQueueService(ItemResultRepository itemResultRepository, AnnotationRepository annotationRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<ReviewQueueItem> list(String projectName, UUID experimentId, UUID runId, org.springframework.data.domain.Pageable pageable) Returns a page of items awaiting review, oldest first.
-
Constructor Details
-
ReviewQueueService
public ReviewQueueService(ItemResultRepository itemResultRepository, AnnotationRepository annotationRepository)
-
-
Method Details
-
list
@Transactional(readOnly=true) public org.springframework.data.domain.Page<ReviewQueueItem> list(String projectName, UUID experimentId, UUID runId, org.springframework.data.domain.Pageable pageable) Returns a page of items awaiting review, oldest first. Eval results and any existingUNSUREverdict are batch-loaded for the page so rendering never fans out into a query per item.- Parameters:
projectName- restrict to this project, or null for anyexperimentId- restrict to this experiment, or null for anyrunId- restrict to this run, or null for anypageable- the page to return- Returns:
- the page of review items
-