Commit 23103e0
api-request-log: increase retention to 30 days, add admin download panel (#1745)
* feat(api-request-log): re-enable logging, increase retention to 30 days, add admin download panel
- Uncomment handleRequestLogging call in openrouter proxy route
- Increase cleanup cron retention from 7 to 30 days
- Add admin page with user ID and date range filters
- Stream zip file with formatted request/response JSON files
- Add archiver dependency for server-side zip streaming
* fix(api-request-log): address review feedback - validate dates, use direct URL download
- Validate date params before building queries to return 400 instead of 500
- Use window.location.href for download to preserve end-to-end streaming
- Add void to archive.finalize() to satisfy lint
- Run oxfmt formatting
* Use await connection instead of force dynamic
* Prettiyfy
---------
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: Christiaan Arnoldus <christiaan@kilocode.ai>
Co-authored-by: Christiaan Arnoldus <christiaan.arnoldus@outlook.com>1 parent f0b191e commit 23103e0
File tree
6 files changed
+378
-15
lines changed- src/app
- admin
- api-request-log
- api/api-request-log/download
- components
- api/cron/cleanup-api-request-log
6 files changed
+378
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments