- Notifications
You must be signed in to change notification settings - Fork947
Commit7c077d3
authored
chore: populate connectionlog count using a separate query (#18629)
This is the third PR for moving connection events out of the audit log.This PR populates `count` on `ConnectionLogResponse` using a separate query, to preemptively mitigate the issue described in#17689. It's structurally identical to a portion of#18600, but for the connection log instead of the audit log. Future PRs:- Implement a table in the Web UI for viewing connection logs.- Write a query to delete old events from the audit log, call it from dbpurge.- Write documentation for the endpoint / feature1 parent7a339a1 commit7c077d3
File tree
15 files changed
+552
-11
lines changed- coderd
- database
- dbauthz
- dbmetrics
- dbmock
- queries
- searchquery
- enterprise/coderd
15 files changed
+552
-11
lines changedLines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1353 | 1353 |
| |
1354 | 1354 |
| |
1355 | 1355 |
| |
1356 |
| - | |
1357 | 1356 |
| |
1358 | 1357 |
| |
1359 | 1358 |
| |
1360 | 1359 |
| |
1361 |
| - | |
1362 | 1360 |
| |
1363 | 1361 |
| |
1364 | 1362 |
| |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1365 | 1376 |
| |
1366 | 1377 |
| |
1367 | 1378 |
| |
| |||
5392 | 5403 |
| |
5393 | 5404 |
| |
5394 | 5405 |
| |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + |
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
406 | 406 |
| |
407 | 407 |
| |
408 | 408 |
| |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
409 | 445 |
| |
410 | 446 |
| |
411 | 447 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
321 |
| - | |
| 321 | + | |
322 | 322 |
| |
323 | 323 |
| |
324 | 324 |
| |
|
Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 48 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
614 | 614 |
| |
615 | 615 |
| |
616 | 616 |
| |
| 617 | + | |
617 | 618 |
| |
618 | 619 |
| |
619 | 620 |
| |
| |||
700 | 701 |
| |
701 | 702 |
| |
702 | 703 |
| |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
703 | 751 |
| |
704 | 752 |
| |
705 | 753 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
79 | 92 |
| |
80 | 93 |
| |
81 | 94 |
| |
|
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 95 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 | 2170 |
| |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2171 | 2175 |
| |
2172 | 2176 |
| |
2173 | 2177 |
| |
| |||
2186 | 2190 |
| |
2187 | 2191 |
| |
2188 | 2192 |
| |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
2189 | 2197 |
| |
2190 | 2198 |
| |
2191 | 2199 |
| |
| |||
2205 | 2213 |
| |
2206 | 2214 |
| |
2207 | 2215 |
| |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2208 | 2220 |
| |
2209 | 2221 |
| |
2210 | 2222 |
| |
| |||
2225 | 2237 |
| |
2226 | 2238 |
| |
2227 | 2239 |
| |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2228 | 2244 |
| |
2229 | 2245 |
| |
2230 | 2246 |
| |
| |||
2243 | 2259 |
| |
2244 | 2260 |
| |
2245 | 2261 |
| |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
2246 | 2266 |
| |
2247 | 2267 |
| |
2248 | 2268 |
| |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
2249 | 2327 |
| |
2250 | 2328 |
| |
2251 | 2329 |
| |
| |||
2484 | 2562 |
| |
2485 | 2563 |
| |
2486 | 2564 |
| |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
2487 | 2581 |
| |
| 2582 | + | |
2488 | 2583 |
| |
2489 | 2584 |
| |
2490 | 2585 |
| |
|
0 commit comments
Comments
(0)