Repository navigation
Release v0.22.2 - #148
Release v0.22.2#148
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds two route-isolation diagnostics ( ChangesRoute Isolation Diagnostics and DI Runtime Path Coverage
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/runtime/context-pack-diagnostics.ts`:
- Around line 413-418: The filter currently matches calls edges using
relationship.from_id OR relationship.from which can incorrectly pull edges from
different nodes with the same label; update the predicate in the filter used by
relationship.relation === 'calls' so that when node.node_id is a string you only
match via relationship.from_id === node.node_id, and only when node.node_id is
missing/undefined fall back to relationship.from === node.label; adjust the
logic around node.node_id, relationship.from_id and relationship.from to enforce
this priority so isolated_route_method and missing_provider_call_edges use
ID-only matching when available.
In `@tests/fixtures/spi/nest-di-runtime-calls/src/idea-generation.controller.ts`:
- Line 1: The controller's route handler accepts a parameter named dto without a
Nest parameter decorator so the request body isn't bound; import Body from
'@nestjs/common' and annotate the handler parameter with `@Body`() (e.g., change
the handler signature in the controller method that reads dto/problem to use
`@Body`() dto: YourDtoType) to ensure dto.problem is populated at runtime; keep
the DTO type as-is and update imports to include Body.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 3af8ba03-76ed-4198-9e1c-cd67a26101ee
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (19)
CHANGELOG.mdpackage.jsonsrc/contracts/context-pack-diagnostics.tssrc/runtime/context-pack-diagnostics.tssrc/runtime/retrieve/slicing.tstests/fixtures/spi/nest-di-runtime-calls/benchmark/html-reporter.tstests/fixtures/spi/nest-di-runtime-calls/fixtures/idea-report.fixture.tstests/fixtures/spi/nest-di-runtime-calls/src/__tests__/idea-generation.controller.spec.tstests/fixtures/spi/nest-di-runtime-calls/src/generate-from-problem.dto.tstests/fixtures/spi/nest-di-runtime-calls/src/idea-generation.controller.tstests/fixtures/spi/nest-di-runtime-calls/src/ideas.service.tstests/fixtures/spi/nest-di-runtime-calls/src/metrics-scoring.service.tstests/fixtures/spi/nest-di-runtime-calls/src/orchestrator.worker.tstests/fixtures/spi/nest-di-runtime-calls/src/pipeline-trigger.service.tstests/fixtures/spi/nest-di-runtime-calls/src/report.repository.tstests/fixtures/spi/nest-di-runtime-calls/src/research-agent.service.tstests/fixtures/spi/nest-di-runtime-calls/src/title-generation.service.tstests/unit/context-pack-diagnostics.test.tstests/unit/spi-nest-di-runtime-calls.test.ts
| @@ -0,0 +1,47 @@ | |||
| import { Controller, Post } from '@nestjs/common' | |||
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
find . -type f -name "idea-generation.controller.ts" | head -20Repository: mohanagy/graphify-ts
Length of output: 141
🏁 Script executed:
# Read the controller file
cat -n tests/fixtures/spi/nest-di-runtime-calls/src/idea-generation.controller.tsRepository: mohanagy/graphify-ts
Length of output: 1748
Add @Body() to bind request payload in the route handler.
Line 17 takes dto without a Nest parameter decorator, so body binding fails and dto.problem is undefined at runtime (lines 18, 21, 28).
Suggested fix
-import { Controller, Post } from '@nestjs/common'
+import { Body, Controller, Post } from '@nestjs/common'
@@
- async generateFromProblem(dto: GenerateFromProblemDto) {
+ async generateFromProblem(`@Body`() dto: GenerateFromProblemDto) {🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tests/fixtures/spi/nest-di-runtime-calls/src/idea-generation.controller.ts`
at line 1, The controller's route handler accepts a parameter named dto without
a Nest parameter decorator so the request body isn't bound; import Body from
'@nestjs/common' and annotate the handler parameter with `@Body`() (e.g., change
the handler signature in the controller method that reads dto/problem to use
`@Body`() dto: YourDtoType) to ensure dto.problem is populated at runtime; keep
the DTO type as-is and update imports to include Body.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
Verification
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores