mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: refactor audit page to use window function for count (#5133)
* Move count query to window function * Unpack count and update types * Remove count endpoint * Update tests, wip * Fix tests * Update frontend, wip * Remove space * Fix frontend test * Don't hang on error * Handle no results * Don't omit count * Fix frontend tests
This commit is contained in:
@ -318,7 +318,6 @@ func New(options *Options) *API {
|
||||
)
|
||||
|
||||
r.Get("/", api.auditLogs)
|
||||
r.Get("/count", api.auditLogCount)
|
||||
r.Post("/testgenerate", api.generateFakeAuditLog)
|
||||
})
|
||||
r.Route("/files", func(r chi.Router) {
|
||||
|
Reference in New Issue
Block a user