refactor(document): revert resolveSort to private
No test calls resolveSort directly — the sort tests assert through searchDocuments + ArgumentCaptor<Pageable>, so the package-private widening added no value. Narrow the API surface back to private. Refs #668 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -802,7 +802,7 @@ public class DocumentService {
|
|||||||
return transcriptionBlockQueryService.getCompletionStats(docIds);
|
return transcriptionBlockQueryService.getCompletionStats(docIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
Sort resolveSort(DocumentSort sort, String dir) {
|
private Sort resolveSort(DocumentSort sort, String dir) {
|
||||||
Sort.Direction direction = "ASC".equalsIgnoreCase(dir) ? Sort.Direction.ASC : Sort.Direction.DESC;
|
Sort.Direction direction = "ASC".equalsIgnoreCase(dir) ? Sort.Direction.ASC : Sort.Direction.DESC;
|
||||||
if (sort == null || sort == DocumentSort.DATE || sort == DocumentSort.RELEVANCE) {
|
if (sort == null || sort == DocumentSort.DATE || sort == DocumentSort.RELEVANCE) {
|
||||||
// Undated documents (null documentDate) must order last regardless of
|
// Undated documents (null documentDate) must order last regardless of
|
||||||
|
|||||||
Reference in New Issue
Block a user