fix: egress cache key mismatch between source and collection preview
Add _sourceAlias and _previewId to the skip list in egressCacheKey so that nodes from source preview (with _sourceAlias) and collection preview (without _sourceAlias, after rename) produce the same cache key. This ensures egress info cached during source-level probe is visible when expanding collection cards.
This commit is contained in:
@@ -78,7 +78,8 @@ func (d *Deps) HandleEgressInfo(c fiber.Ctx) error {
|
||||
func egressCacheKey(node model.ProxyNode) string {
|
||||
clean := model.ProxyNode{}
|
||||
skip := map[string]bool{
|
||||
"id": true, "name": true, "latencyMs": true, "latencyError": true,
|
||||
"id": true, "name": true, "_sourceAlias": true, "_previewId": true,
|
||||
"latencyMs": true, "latencyError": true,
|
||||
"egressIp": true, "egressCountry": true, "egressRegion": true, "egressError": true,
|
||||
"country": true, "region": true, "city": true, "isp": true, "cached": true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user