feat: dashboard enrichment-list-block after batch upload (#296) #298

Merged
marcel merged 19 commits from feat/issue-296-enrichment-list-block into main 2026-04-21 08:59:32 +02:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 2c5cfcedbc - Show all commits

View File

@@ -199,6 +199,7 @@ public class DocumentController {
}
@GetMapping("/incomplete")
@RequirePermission(Permission.WRITE_ALL)
public List<IncompleteDocumentDTO> getIncomplete(
@Parameter(description = "Maximum number of results (server caps at 200)")
@RequestParam(defaultValue = "50") int size) {

View File

@@ -414,6 +414,13 @@ class DocumentControllerTest {
.andExpect(jsonPath("$[0].uploadedAt").exists());
}
@Test
@WithMockUser(authorities = "READ_ALL")
void getIncomplete_returns403_forReaderOnly() throws Exception {
mockMvc.perform(get("/api/documents/incomplete"))
.andExpect(status().isForbidden());
}
// ─── GET /api/documents/incomplete/next ──────────────────────────────────
@Test