Update infrastructure-cascade.ts#139
Closed
Justin-Diamond wants to merge 1 commit into
Closed
Conversation
FIX: Previously, non-cable sources always returned 0.1 (10%), which made pipelines/chokepoints/ports always show 10% on the site. Now uses the hardcoded strength/redundancy values already encoded, or falls back to 0.
|
@Justin-Diamond is attempting to deploy a commit to the eliehabib projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Merged with changes , thank you @Justin-Diamond |
facusturla
pushed a commit
to facusturla/worldmonitor
that referenced
this pull request
Feb 27, 2026
Closes koala73#139 — pass DependencyGraph as parameter (no redundant rebuild), check direct edges first, then walk BFS dependency chain for indirect impacts (chokepoint → port → country). Returns 0 for truly unaffected.
8 tasks
koala73
added a commit
that referenced
this pull request
Jun 19, 2026
…#4351) Resolves all 3 critical Dependabot alerts without changing runtime behavior: - shell-quote 1.8.3 -> 1.8.4 (root + pro-test) via overrides. It is a transitive peer dep of the dead react-devtools-core/react-native tree; the bump is a security patch with no runtime impact. (#140, #141, GHSA-w7jw-789q-3m8p) - vitest ^2.1.2 -> ^3.2.6 (consumer-prices-core), a dev-only test tool. All 54 tests pass and `tsc` builds clean under v3; zero production dependencies changed and no CI job runs it. (#139, GHSA-5xrq-8626-4rwp) Also folded in, since it was the sole remaining blocker keeping the security-audit gate red on every PR: - undici 7.24.5 -> 7.28.0 (scripts), an in-range (^7.x) direct-dep patch for the SOCKS5 ProxyAgent TLS bypass (GHSA-vmh5-mc38-953g, high). Removed the now-obsolete GHSA-w7jw-789q-3m8p baseline entries from audit-production-dependencies.mjs (shell-quote is patched, not deferred) and re-pointed the two baseline tests at advisories that are still baselined. Full audit matrix passes exit=0 across all 6 workspaces; lockfiles are idempotent (npm ci-safe). Claude-Session: https://claude.ai/code/session_01JWozy1k6rwrf6ENB3XSJDR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FIX: Previously, non-cable sources always returned 0.1 (10%), which made pipelines/chokepoints/ports always show 10% on the site. Now uses the hardcoded strength/redundancy values already encoded, or falls back to 0.
Summary
Fixes the % Capacity effect calculated and displayed on infra cascade feature. Before, it correctly calculated the effect for purposes of color/display order, but showed wrong % capacity effect.
Type of change
Changed the value returned by infra cascade for non-cable infra.
Affected areas
Only the % capacity value in infra cascade is affected.
Checklist
Didn't test in dev environment, only changed the # returned.