feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log#430
feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log#430bao-byterover merged 2 commits intoproj/query-logfrom
Conversation
|
Claude finished @bao-byterover's task in 2m 4s —— View job PR Review: feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log
SummaryA minimal, focused change: bumps the default Score: 4 / 5 The implementation is correct and the test strategy (seed files directly on disk, then assert file counts and getById outcomes at/above the boundary) is well-chosen — it avoids the slow overhead of saving 1000 entries through the store. Two minor issues and one stale doc comment prevent a perfect score. Issues FoundStale JSDoc comment (not in diff — manual fix needed)
Should be updated to Test numbering out of orderIn Type assertions in curate-log test
Positive Notes
|
| expect(await storeWithBoth.getById(ids[3])).to.not.be.undefined | ||
| }) | ||
|
|
||
| // Test 21 |
There was a problem hiding this comment.
nitpick: Test label is out of order — // Test 21 appears before // Test 20 in the file. Either renumber this one to // Test 21 at the end (after Test 20), or move it to its logical position. Minor cosmetic issue, but makes the numbering confusing to future readers.
| await seedFiles(baseTs, 99) | ||
| const store100 = new FileCurateLogStore({baseDir: tempDir}) | ||
| const id100 = `cur-${baseTs + 99}` | ||
| await store100.save(makeEntry({completedAt: baseTs + 100, id: id100, startedAt: baseTs + 99, status: 'completed'} as Partial<CurateLogEntry> & {id: string})) |
There was a problem hiding this comment.
nitpick: The as Partial<CurateLogEntry> & {id: string} type assertion is used three times in this test. Per the project's TypeScript standards, as Type assertions should be avoided — prefer a typed helper or constructing the object to match the expected shape directly. The existing makeEntry helper presumably handles this; check if its signature can be relaxed to accept the needed fields without assertion.
|
Claude finished @bao-byterover's task in 2m 11s —— View job PR Review: feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log
SummaryThis PR bumps Score: 5 / 5 All three issues flagged in the previous review have been resolved in the follow-up commit ( Previous Review Issues — All Resolved ✅
Implementation Verification
// line 71
const DEFAULT_MAX_ENTRIES = 1000 // was 100 ✓
// line 67
const DEFAULT_MAX_ENTRIES = 1000 // was 200 ✓
// line 85 (JSDoc)
// Prunes by age (default 30 days) then by count (default 1000). ✓All pruning logic is untouched — only the constant changed. The Test StrategyThe tests seed files directly on disk (bypassing the store's
The curate-log unit test correctly uses a fixed historical timestamp ( Minor Observation (pre-existing, not blocking)The Positive Notes
|
* feat: [ENG-1897] Create brv query-log view oclif command (#347) * feat: [ENG-1897] Create brv query-log view oclif command * feat: [ENG-1897] fix review * feat: [ENG-1896] Implement QueryLogUseCase with list and detail views (#349) * feat: [ENG-1896] Implement QueryLogUseCase with list and detail views * feat: [ENG-1896] Fix review * feat: [ENG-1888] Define IQueryLogStore interface (#351) * feat: [ENG-1887] Define QueryLogEntry entity with discriminated union (#353) * feat: [ENG-1889] Implement FileQueryLogStore with Zod validation (#354) * feat: [ENG-1889] Implement FileQueryLogStore with Zod validation * feat: [ENG-1889] fix review * feat: [ENG-1899] Create brv query-log summary oclif command (#357) * feat: [ENG-1899] Create brv query-log summary oclif command * feat: [ENG-1899] fix review * feat: [ENG-1898] Implement QueryLogSummaryUseCase (#368) * feat: [ENG-1892] Add QueryExecutorResult type with tier and timing metadata (#369) * feat: [ENG-1893] Wire QueryLogHandler into daemon lifecycle (#370) * feat: [ENG-1894] Wire QueryLogHandler into daemon lifecycle (#371) * feat: [ENG-1894] enhance message output * feat: [proj/query-log] fix review * feat: [ENG-2123] brv curate view / brv query-log view truncate long c… (#424) * feat: [ENG-2123] brv curate view / brv query-log view truncate long content * feat: [ENG-2123] fix review * feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log (#430) * feat: [ENG-2177] Increase Storage Limit for Curate Log and Query Log * feat: [ENG-2177] fix review * feat: [ENG-2177] fix slow test --------- Co-authored-by: Hoang Pham <lehoangpham1092@gmail.com>
No description provided.