fix: include role-based entry points in flow --list#313
Conversation
`listEntryPointsData()` only queried framework-prefixed names (route:%, event:%, command:%) but the docstring and builder both recognize role='entry' nodes. Add `OR n.role = 'entry'` to the SQL WHERE clause and fall back to type 'exported' for non-prefixed role-based entries. Impact: 1 functions changed, 3 affected
|
Claude finished @carlos-alm's task —— View job PR Review: fix: include role-based entry points in flow --listReview Progress
Root Cause AnalysisProblem Being Solved: The Why This Approach: This is a legitimate bug fix that addresses a gap between the role classification logic (in Risk Assessment: ✅ LOW RISK - This is a proper fix that aligns two parts of the system rather than a workaround. Configuration Change Detection✅ No concerning configuration changes detected
Test Integrity Assessment✅ Test changes are appropriate and strengthen coverage Added test coverage for the fix:
Test expectations were properly updated, not weakened:
Code Quality Review✅ SQL Query Enhancement (lines 48-51): WHERE (
(${prefixConditions})
OR n.role = 'entry' -- NEW: Include role-based entries
)
✅ Type Assignment Logic (line 65): type: entryPointType(r.name) || (r.role === 'entry' ? 'exported' : null)
✅ Implementation Quality:
Minor Observations:
Final AssessmentThis is a well-executed bug fix that addresses a real gap in functionality. The implementation:
Strengths:
No significant concerns identified. Final Recommendation
|
Greptile SummaryFixed
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 6681597 |
Summary
flow --listreturned "No entry points found" on real codebases becauselistEntryPointsData()only queried framework-prefixed names (route:%,event:%,command:%)role='entry', but the SQL never checked for that columnOR n.role = 'entry'to the WHERE clause and fall back totype: 'exported'for non-prefixed role-based entriesTest plan
exportedInitnode withrole='entry'(no framework prefix) to flow test fixturelistEntryPointsData()withtype: 'exported'npx vitest run tests/integration/flow.test.js— 19/19 passnpm run lint— clean on modified files (pre-existing warning inqueries.test.jsunrelated)