Repository navigation
refactor(frontend): remove unused report-generation members - #9087
aglinxinyuan merged 2 commits into
Conversation
apache#2816 added an isAIAssistantEnabled field, an HttpClient injection and an AI_ASSISTANT_API_BASE_URL constant to this service, but nothing in it ever used them (the HTTP calls live in AiAnalystService). Remove them and the imports they leave unused.
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
Review effort: Lite
What changes were proposed in this PR?
Removes three unused members from
ReportGenerationService: the privateisAIAssistantEnabledfield, the injectedhttp: HttpClient, and theAI_ASSISTANT_API_BASE_URLconstant. The now-unusedHttpClientandAppSettingsimports go too. +2/−11 lines. There is no behaviour change.Nothing reads any of them, and nothing builds the service by hand; Angular DI creates it, so dropping a constructor parameter is safe. The spec drops its empty
HttpClientstub, whose comment already noted thathttpis "injected by the service and never used".History
AiAnalystServiceThey have been unused for the two years since they were added.
Any related issues, documentation, discussions?
Closes #9084
How was this PR tested?
No new tests.
From
frontend/:npx ng test --watch=false --include='**/report-generation.service.spec.ts' --include='**/menu.component.spec.ts': 2 files, 169 tests, all pass. These are the only specs that provide or inject the service.npx tsc --noEmit -p src/tsconfig.app.jsonand-p src/tsconfig.spec.json: clean.yarn format:ci: clean.npx ng build: success.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code