[Bug] Angular calls on an inherited class field and httpResource({ url }) are not read as client calls

Open
#6,446 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@rishu685 is already working on this.

Since Nov 27, 2026.

  • #6474 by @rishu685 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
angular, python, typescript

Research direction

Start with packages/core/src/repowise/core/workspace/extractors/http/js_clients.py around lines 176–192, then read the Angular dialect and nearby tests in tests/unit/workspace/test_angular_http.py. Add coverage for same-file inherited fields and httpResource literal and field forms, including the () => ({ url }) form. Done means those cases produce the expected consumers, with GET as the default method.

Written by the indexing model from the issue text.

Description

bug help wanted

Summary

Two Angular shapes are missed: a class field declared on a base class in the same file and read as this.resourceUrl in a subclass, and httpResource({ url }) calls.

packages/core/src/repowise/core/workspace/extractors/http/js_clients.py:176-192

fields.enter(m.offset)
text = strings.text(m.url)
if text is None or unsettled_field(text, fields):
    ctx.note_unresolved(m.offset)
    continue

Mechanism

  • FieldScope is scoped to the enclosing class, so a field declared on Base is not found from ItemService extends Base, and the call is dropped as unresolved.
  • httpResource is not in the Angular dialect, so no consumer is produced for it.

Repro

jhipster-sample-app: 8 of 16 consumers found; the entity services' CRUD calls on this.resourceUrl are unread. Fixture on main:

class Base { protected resourceUrl = '/api/items'; }
export class ItemService extends Base {
  list() { return this.http.get(this.resourceUrl); }
  res = httpResource({ url: '/api/other' });
}
(no consumers)

With resourceUrl declared inside ItemService, the same call gives GET /api/items.

Impact

Entity CRUD in JHipster-style Angular apps never reaches the link step.

Done looks like

  • When the field is not found in the class, look at the base class named in extends in the same file.
  • Read httpResource(...) with url as a string, template or field, and () => ({ url }); method defaults to GET.

Tests

tests/unit/workspace/test_angular_http.py: inherited field, plus httpResource literal and field forms.

Dominant language
Python
Stars
7.1k
Forks
756
Avg merge
21h 5m
Merged PRs (30d)
797

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from repowise-dev/repowise

All issues in repowise-dev/repowise

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.