Add memory subgraph example and reporting integration#596
Conversation
- Implemented step 7 in the custom graph demo to create a memory subgraph. - Updated the subgraph creation process to report asset materialization to Dagster, including relevant metadata. - Added new security event types for subgraph creation and deletion in the audit logger.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 2m 10s —— View job PR Review: Add memory subgraph example and reporting integration
Overall this is a clean, additive PR. The example is well-structured and the Dagster reporting integration follows the established pattern in Critical:
|
- Updated the `load_credentials` function to accept a path parameter for improved flexibility. - Added handling for duplicate subgraph creation in the `create_memory_subgraph` function. - Enhanced error reporting in the `execute_query` function to include exception details. - Adjusted import statements for better organization in the custom graph demo script. - Added a comment in the subgraph creation process to clarify Dagster reporting behavior.
Summary
Introduces a new memory subgraph example demonstrating how to create and manage memory-based subgraphs, along with integration points for reporting this capability to Dagster. This is a chore/example addition that expands the custom graph demo suite.
Key Accomplishments
07_memory_subgraph.py) showcasing memory subgraph creation patterns, significantly expanding the custom graph demo library with ~540 lines of example codeBreaking Changes
None. This is an additive change that introduces a new example and extends existing modules without modifying current behavior.
Testing Notes
Infrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
chore/subgraph-memory-examplemainCo-Authored-By: Claude noreply@anthropic.com