This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
Commit a6c46ed
ohotnikov.ivan
fix(ui): drop watch for TenantSecrets to honor labelSelector
The TenantSecrets API List() correctly applies labelSelector, but Watch()
ignores it and streams every tenant Secret in the namespace
(cozystack/cozystack#2527). The previous client-side filter masked the
extra events but still pulled them over the wire and pollutes React Query
cache.
Switch the SecretsTab to List-only for TenantSecrets by disabling watch
in that branch — same approach as the upstream openapi-ui dashboard. For
regular Secrets (non-tenant namespaces) watch is preserved.
Replaces the prior client-side filtering workaround.
Signed-off-by: ohotnikov.ivan <[email protected]>1 parent 8f71d44 commit a6c46ed
1 file changed
Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 211 | + | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
| |||
0 commit comments