Skip to content

fix: skip structural-only communities in reports - #443

Closed
RickwangF wants to merge 1 commit into
Graphify-Labs:v4from
RickwangF:fix-empty-communities-report
Closed

RickwangF wants to merge 1 commit into
Graphify-Labs:v4from
RickwangF:fix-empty-communities-report

Conversation

@RickwangF

Copy link
Copy Markdown

Summary

  • skip community sections that become empty after filtering structural/file-only nodes
  • avoid rendering Nodes (0): entries in GRAPH_REPORT.md
  • add a regression test for structural-only communities

Test plan

  • Run python3 -m pytest tests/test_report.py -q --tb=short
  • Rebuild a real contact-module report and confirm Nodes (0): no longer appears

🤖 Generated with Claude Code

Avoid rendering empty community sections after report filtering removes file-only and structural nodes, and add a regression test for the case.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
safishamsi added a commit that referenced this pull request Apr 21, 2026
- cache: skip directory source_file in save_cached to prevent IsADirectoryError (#444)
- report: skip structural-only communities with no real nodes (#443)
- hooks: allow @ in python path allowlist for Homebrew paths (#474)
- watch: keep source_file paths project-relative after rebuild (#434)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@safishamsi

Copy link
Copy Markdown
Member

Thanks! Implemented directly in v0.4.24 — the if not real_nodes: continue guard is in report.py.

@safishamsi safishamsi closed this Apr 21, 2026
safishamsi added a commit that referenced this pull request Apr 23, 2026
- cache: skip directory source_file in save_cached to prevent IsADirectoryError (#444)
- report: skip structural-only communities with no real nodes (#443)
- hooks: allow @ in python path allowlist for Homebrew paths (#474)
- watch: keep source_file paths project-relative after rebuild (#434)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
zeekay pushed a commit to Dream-AI-4444/graphify that referenced this pull request Sep 10, 2026
- cache: skip directory source_file in save_cached to prevent IsADirectoryError (Graphify-Labs#444)
- report: skip structural-only communities with no real nodes (Graphify-Labs#443)
- hooks: allow @ in python path allowlist for Homebrew paths (Graphify-Labs#474)
- watch: keep source_file paths project-relative after rebuild (Graphify-Labs#434)

Co-authored-by: Hanzo Dev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants