Skip to content

fix: BED-10756 omit false collected node properties - #131

Merged
jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10756-omit-false-collected
Dec 2, 2026
Merged

jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10756-omit-false-collected

Conversation

@jaredcatkinson

@jaredcatkinson jaredcatkinson commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Omit the collected property from exported GitHub nodes when it is Boolean false. Keep collected: true for fully collected organizations. This lets the Attack Paths environment picker disable reference-only organization stubs on BHE versions that classify OpenGraph environments by property presence.

Verification

  • Full test suite passed (1,456 tests). The focused app owner and enterprise organization tests and Ruff also passed.
  • Verified generated OpenGraph JSON for both a fully collected organization and a reference-only stub.
  • Confirmed the fix in BHE after clearing the prior nodes, reconverting the existing collection, and importing the regenerated graph.

Summary by CodeRabbit

  • Bug Fixes
    • Graph results now omit the collection status for organizations that haven’t been collected, while continuing to show it for collected organizations. This keeps displayed graph information consistent across single- and multi-organization results and avoids showing a false status for uncollected entries.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

GHNode serialization now omits the collected property when its value is exactly False. Tests check that collected organizations retain True and stub organizations omit the property in serialized graph content.

Changes

Node serialization

Layer / File(s) Summary
Serialization behavior and validation
src/openhound_github/graph.py, tests/test_app_owners.py, tests/test_enterprise_organization.py
GHNode.model_dump() omits collected when its value is exactly False. Tests check the serialized properties of generated nodes for collected and stub organizations.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: eladshamir, ktstrader

Merge Risk: Minimal · up to e0cdb

Reference-only organization stubs no longer export collected=false, while fully collected organizations keep collected=true. No merge-blocking risk was identified.

Security architecture risk: Minimal · up to e0cdb

The change prevents reference-only organizations from appearing selectable in affected BHE versions while preserving the marker for fully collected organizations. No new access or privilege change was identified. The reported verification used a clean reimport; it did not establish whether reimporting over existing nodes removes the old marker.

Security review details

Security Blast Radius

  • inferred — The direct effect is on consumers of GitHub graph exports that distinguish an absent key from explicit false. The serializer change does not add a path to make a false flag become true or to change a node's identifier.

Trust Boundaries and Controls

  • inferred — The changed signal crosses the OpenGraph export boundary as node metadata. The supplied evidence ties it to picker eligibility, but does not establish that BHE uses it to authorize access.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: omit the collected node property when its value is false, for BED-10756. The raw summary and PR objectives both describe this exact change in graph.py and the tests, so the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: omit the collected node property when its value is false, for BED-10756. The raw summary and PR objectives both describe this exact change in graph.py and the tests, so the title matches the main change. It is short, specific, and uses the ticket ID as a prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks each node with care,
A false collected leaves the air.
The true ones keep their mark in place,
Stub nodes show a cleaner face.
Then hops away through fields of trace.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 097ede2a-84ae-4f62-a294-18196880f18b
Commits

Reviewing files that changed from the base of the PR and between f1f6454 and e0cdb9c.

Files selected for processing: 3

  • src/openhound_github/graph.py
  • tests/test_app_owners.py
  • tests/test_enterprise_organization.py

Included review availability: This review used your included allowance. 8 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@jaredcatkinson
jaredcatkinson merged commit f7d7321 into main Dec 2, 2026
3 checks passed
@jaredcatkinson
jaredcatkinson deleted the fix/BED-10756-omit-false-collected branch December 2, 2026 15:48
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