Commit e19f946
PB 503 retry, IPv6 validation, download concurrency, little performance improvements (#534)
* fix: PB 503 retry, IPv6 validation, download concurrency
- Add withPbRetry() with exponential backoff for PocketBase queries
that return 503/429 under concurrent tRPC request load (#527)
- Accept IPv6 addresses in gateway and DNS resolver fields (#524)
- Batch loadMultipleScripts in groups of 5 with Promise.allSettled
and inter-batch delay to avoid GitHub rate limits (#523)
Closes #527, Closes #524, Closes #523
* perf: increase staleTime, disable refetchOnWindowFocus, use httpBatchLink
- staleTime 30s → 5min: script metadata rarely changes, avoids
constant re-fetches on every navigation
- refetchOnWindowFocus: false: prevents all queries from re-firing
when switching tabs or clicking back into the window
- httpBatchLink instead of httpBatchStreamLink: responses arrive as
single JSON payload instead of streamed chunks, reducing overhead
for the typical small tRPC payloads
* fix: address TypeScript linting issues and improve error handling across multiple files
* fix: resolve TypeScript linting issues by updating error handling and filtering logic
---------
Co-authored-by: ProxmoxVE Developer <dev@localhost>1 parent 9a3312d commit e19f946
16 files changed
Lines changed: 807 additions & 359 deletions
File tree
- scripts
- src
- app
- _components
- api/servers/[id]/discover-ssh-keys
- server
- api/routers
- lib/gitProvider
- services
- trpc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments