Commit 1d3a65b
committed
refactor: remove REST users/ACLs/quotas after Connect Query migration (UX-1199)
The frontend already calls dataplane.v1.UserService, ACLService, and
QuotaService directly via Connect Query. The REST handlers and their
backend-api.ts callers were dead code still being served but no longer
consumed. Remove them along with the now-orphaned ConsoleSvc methods.
Backend
- Delete handle_users.go (GET/POST/DELETE /api/users)
- Delete handle_quotas.go (GET /api/quotas)
- Drop handleCreateACL / handleDeleteACLs from handle_acls.go and the
POST/DELETE /api/acls route registrations; keep GET /api/acls — still
used by the frontend Zustand store for isAuthorizerEnabled detection
(Phase 2 will remove the route once detection switches to RPC error
codes; tracked under UX-1210)
- Drop CreateACL / DeleteACLs / DescribeQuotas from the Servicer
interface and the corresponding methods/types from create_acl.go,
delete_acls.go, describe_quotas.go (kept the *Kafka / *Client variants
that the Connect handlers still call)
Frontend
- Strip refresh/createServiceAccount/deleteServiceAccount, refreshQuotas,
createACL/deleteACLs from backend-api.ts and the matching response
types from rest-interfaces.ts
- Drop legacy ACL conversion helpers from react-query/api/acl.tsx
- Fix useCreateACLMutation invalidating listACLs with cardinality
'infinite' while the actual query uses useQuery (finite) — the
invalidation silently no-op'd, leaving a stale ACL list after every
successful create
- Guard ACL create/update navigation on mutation success so the form
stops navigating away on failed submits (regression surfaced by the
new e2e suite — UX-1218)
Cross-repo: apps/redpanda-connect-api/tenant/api.go in cloudv2 has
already been migrated off these REST endpoints; tests/e2e-billing/...
is the only remaining REST caller (test-only, lower impact).1 parent 910adb5 commit 1d3a65b
16 files changed
Lines changed: 17 additions & 1176 deletions
File tree
- backend/pkg
- api
- console
- frontend/src
- components/pages/security
- acls
- tabs
- react-query/api
- state
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
This file was deleted.
This file was deleted.
0 commit comments