- Notifications
You must be signed in to change notification settings - Fork948
Commitb5260d5
authored
feat(site): add connection log page (#18708)
This is the fourth PR for moving connection events out of the audit log.This PR adds `/connectionlog` to the frontend. This page is identical in structure to the audit log, but with different filters and contents.The connection log lists sessions, and the time they start. If we support tracking the end time of a session, and we've received a disconnect event for that session, the end timestamp is also included. Demo:https://github.com/user-attachments/assets/e0fff799-0ed6-45f7-a8c0-237839659ef9<img width="346" alt="image" src="https://github.com/user-attachments/assets/6de29945-55c2-4fe5-9a4f-d42e476ded25" /><img width="184" alt="image" src="https://github.com/user-attachments/assets/e83234bc-4d9d-4f71-b668-9256a600659c" />Since the styling is identical to that of the audit log, I've continued to use MUI table components. When the audit log is migrated off MUI/restyled, this table can be too, relatively easily.Future PRs:- Write a query to delete old events from the audit log, call it from dbpurge.- Write documentation for the endpoint / feature1 parent1ee6b8d commitb5260d5
File tree
26 files changed
+1406
-45
lines changed- site/src
- api
- queries
- components
- Filter
- StatusPill
- modules
- dashboard/Navbar
- permissions
- pages
- AuditPage
- AuditLogRow
- ConnectionLogPage
- ConnectionLogRow
- ConnectionLogDescription
- testHelpers
- utils
26 files changed
+1406
-45
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1813 | 1813 |
| |
1814 | 1814 |
| |
1815 | 1815 |
| |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
1816 | 1824 |
| |
1817 | 1825 |
| |
1818 | 1826 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + |
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
88 |
| - | |
| 89 | + | |
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
92 |
| - | |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
|
Lines changed: 43 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + |
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
| 34 | + | |
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
| |||
59 | 62 |
| |
60 | 63 |
| |
61 | 64 |
| |
| 65 | + | |
62 | 66 |
| |
63 | 67 |
| |
64 | 68 |
| |
| |||
71 | 75 |
| |
72 | 76 |
| |
73 | 77 |
| |
| 78 | + | |
74 | 79 |
| |
75 | 80 |
| |
76 | 81 |
| |
| |||
108 | 113 |
| |
109 | 114 |
| |
110 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
111 | 126 |
| |
112 | 127 |
| |
113 | 128 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
192 | 193 |
| |
193 | 194 |
| |
194 | 195 |
| |
| 196 | + | |
195 | 197 |
| |
196 | 198 |
| |
197 | 199 |
| |
| |||
237 | 239 |
| |
238 | 240 |
| |
239 | 241 |
| |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
240 | 250 |
| |
241 | 251 |
| |
242 | 252 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
| |||
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| |||
67 | 69 |
| |
68 | 70 |
| |
69 | 71 |
| |
| 72 | + | |
70 | 73 |
| |
71 | 74 |
| |
72 | 75 |
| |
| |||
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
| 91 | + | |
88 | 92 |
| |
89 | 93 |
| |
90 | 94 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| 48 | + | |
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
| |||
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| 78 | + | |
76 | 79 |
| |
77 | 80 |
| |
78 | 81 |
| |
| |||
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
| 130 | + | |
127 | 131 |
| |
128 | 132 |
| |
129 | 133 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 |
| |
160 | 167 |
| |
161 | 168 |
| |
|
0 commit comments
Comments
(0)