This MR improves the performance of counting the number of requests currently open for a certain lab for a certain assistant. It improves this by changing the current in-memory filter on requests by doing a specific query counting a filtered list of requests.
Lab.getQueuedCount
counted the number of requests in a list of requests that fulfilled some conditions.
RequestRepository.queuedCountPredicate
creates a predicate containing the checks previously in Lab.getQueuedCount
.
Closes #93 (closed)