Conversation
…ality, and matched by id instead of kind
… prioritization to zone node instead, updated tests
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe change adds ChangesZone Node Generation
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant TagAssetGroupsAndTierZero
participant generateZoneNodesAndMemberEdges
participant graphDB
TagAssetGroupsAndTierZero->>generateZoneNodesAndMemberEdges: invoke zone generation when zone nodes are enabled
generateZoneNodesAndMemberEdges->>graphDB: read tier tags and existing zone nodes
generateZoneNodesAndMemberEdges->>graphDB: reconcile zone nodes
generateZoneNodesAndMemberEdges->>graphDB: reconcile MemberOfZone edges
Merge Risk: ⚪ Minimal · up to No actionable merge-blocking behavior is identified in the supplied change context. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 golangci-lint (2.13.2)Error: build linters: plugin(integrationparallel): plugin "integrationparallel" not found Comment |
…roperty map instead of setting the values after creation to prevent DAWGs from marking newly created zone node properties as modified
bsheth711
left a comment
There was a problem hiding this comment.
LGTM but I might be a little biased 😅
Description
This change:
Adds synthetic Zone nodes and MemberOfZone relationships to represent privilege zones directly in the graph. Zone nodes and memberships are automatically reconciled when zones are created, renamed, deleted, or updated. The behavior is controlled by the new zone_node feature flag.
This new behavior will be used to calculate hop count for Findings Prioritization. There are also additional plans to use it with pathfinding.
More information can be found here
Motivation and Context
Resolves BED-8916
How Has This Been Tested?
Integration Testing, Manual Testing
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Tests