Skip to content

HTTP_CALLS conflates client-side router navigation (Angular router.navigateByUrl) with real HTTP calls #1250

Description

@mmaripanguec

What is broken

In Angular/Ionic frontends, HTTP_CALLS edges are created for client-side navigation, not just network calls. The callee property makes the origin obvious:

{"via": "arg_url", "callee": "this.router.navigateByUrl", "url_path": "/home/payments"}
{"via": "arg_url", "callee": "component.onGoTo",          "url_path": "/home/benefits"}

Minimal repro (TypeScript)

this.router.navigateByUrl('/home/payments');   // UI navigation -> becomes HTTP_CALLS
this.http.post(environment.API + '/login', b); // actual HTTP call

Observed impact

In a real PWA, the large majority of its 253 HTTP_CALLS edges were router navigations. Any consumer that uses HTTP_CALLS to derive service-to-service communication (cross-repo maps, dependency graphs) has to hand-maintain a denylist of router callee patterns to avoid inventing traffic between repos.

Expected

Either (a) don't emit HTTP_CALLS for known client-side navigation APIs (Router.navigate*, Location.go, history APIs), or (b) emit them as a distinct edge type (e.g. NAVIGATES_TO), keeping HTTP_CALLS for actual network client calls (HttpClient/fetch/axios). The callee heuristic exists already — it just needs to gate the edge type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions