Owen Schwartz
ebe1c7a297
Improve OpenAPI response payload typing for Swagger data schemas ( #3102 )
...
* Fix custom parser OpenAPI types and add structured default response schema
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/73990123-9c27-444b-bc6e-77e890a0d57c
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
* Document all registerPath responses and normalize OpenAPI parser schemas
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/73990123-9c27-444b-bc6e-77e890a0d57c
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
* Add concrete OpenAPI data schemas for selected routes
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/7b395a8e-7fae-4f4d-952e-4030fea08262
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
* Reformat generated OpenAPI response schemas for readability
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/7b395a8e-7fae-4f4d-952e-4030fea08262
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
* Remove obsolete stoi import from blueprint OpenAPI route
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/7b395a8e-7fae-4f4d-952e-4030fea08262
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
2026-05-31 11:10:38 -07:00
bishnubista
817e848d08
fix(audit-logs): route request audit log reads through logsDb
...
Route the read paths in queryRequestAuditLog.ts and
queryRequestAnalytics.ts through `logsDb` instead of
`primaryLogsDb`, matching the existing private audit log routes
(queryActionAuditLog, queryAccessAuditLog, queryConnectionAuditLog
all already use `logsDb`). In PostgreSQL deployments configured
with a read replica via `withReplicas` (see server/db/pg/logsDriver.ts),
this keeps high-volume audit log reads off the primary. No-op
in OSS-SQLite where `logsDb === primaryDb`.
Investigated rewriting `queryUniqueFilterAttributes` per the
in-line TODO ("SOMEONE PLEASE OPTIMIZE THIS!!!!!"). A candidate
rewrite using UNION ALL with six GROUP BY...LIMIT 500 arms
benchmarked 48-61% slower than the current SELECT DISTINCT
LIMIT 501 approach on SQLite (100k/300k/1M rows, 20 runs each):
each grouped arm materializes a temp B-tree before applying LIMIT,
while DISTINCT short-circuits via hash dedup with early exit.
A materialized facets table is likely the right long-term fix,
not a query-shape rewrite.
2026-05-25 10:37:47 -07:00
copilot-swe-agent[bot]
a0a093ed0b
Document all registerPath responses and normalize OpenAPI parser schemas
...
Agent-Logs-Url: https://github.com/fosrl/pangolin/sessions/73990123-9c27-444b-bc6e-77e890a0d57c
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com >
2026-05-17 06:43:10 +00:00
miloschwartz
4cab693cfc
openapi and swagger ui improvements and cleanup
2026-03-03 14:54:17 -08:00
Owen
b622aca221
Try to route logs requests to a different database
2026-02-20 17:20:01 -08:00
Owen
5c67a1cb12
Format
2025-12-22 16:28:41 -05:00
Owen
221ee6a1c2
Remove warning for limit
2025-12-22 14:07:49 -05:00
Owen
3e01bfef7d
Move primaryDb into driver
2025-12-18 17:08:50 -05:00
Owen
6b609bb078
Force big queries onto primary db to prevent 40001
2025-12-18 16:03:15 -05:00
depado
16653dd524
fix(database): filter dates evaluated at module load time
2025-12-18 10:06:31 -05:00
miloschwartz
f81909489a
add client telmetry and fix missing openapi on prefault
2025-12-11 10:38:48 -05:00
Fred KISSIE
adf76bfb53
♻️ set default start time to 7 days ago
2025-12-08 23:56:28 +01:00
Fred KISSIE
e0a79b7d4d
♻️ set default log analytics time range to. 7days ago
2025-12-08 22:57:05 +01:00
Fred KISSIE
3f440f0f7a
🏷️ fix type for SQLite
2025-11-21 06:10:01 +01:00
Fred KISSIE
ba6defa87c
✨ Add request by day chart
2025-11-21 06:03:34 +01:00
Fred KISSIE
a42d012788
✨ load logs per day
2025-11-21 04:48:01 +01:00
Fred KISSIE
5fd64596eb
✨ add top countries list
2025-11-21 02:00:47 +01:00
Fred KISSIE
5d1f81a92c
✨ world map
2025-11-20 08:19:11 +01:00
Fred KISSIE
dc237b8052
💬 update text message from the API
2025-11-20 03:19:43 +01:00
Fred KISSIE
cd76fa0139
✨ add analytics endpoint
2025-11-20 02:55:33 +01:00