Conversation
Co-authored-by: Chris Nash <chris.nash@disguise.one>
Add new pystub proxy support
Add register module in lazy manner
when user use jupyter notbook, it is exected to register same function with different definition multiple times. update the function to reflect the change and give an warning.
Jupyter support
Detect the used python package and add it when register the python automatically
add tag on release restrict action to main
Add release action
|
Caution Review failedPull request was closed or merged during review WalkthroughThis PR implements lazy module registration for D3 sessions with automatic import detection. It renames Designer API execution functions ( Changes
Sequence DiagramsequenceDiagram
actor User
participant Session as D3Session/<br/>D3AsyncSession
participant Executor as execute()
participant Registry as Module Registry
participant D3Function as D3Function
participant API as Designer API
User->>Session: Create session with payload
User->>Executor: Call execute(payload)
Executor->>Executor: Check if payload.moduleName exists?
alt Module name present
Executor->>Registry: Is module in registered_modules?
alt Not yet registered
Executor->>D3Function: Get registration payload for module
D3Function->>D3Function: Extract imports for all functions
D3Function-->>Executor: Return payload with module code & imports
Executor->>API: Call register_module API
API-->>Executor: Success
Executor->>Registry: Add module to registered_modules
else Already registered
Executor->>Executor: Skip registration
end
end
Executor->>API: Execute payload
API-->>Executor: Return result
Executor-->>User: Return response
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merge dev into main for release
Summary
Merging dev branch for
1.3.0release.Summary by CodeRabbit
New Features
execute()orrpc()call instead of requiring upfront registration.Updates
d3_api_executeandd3_api_aexecute(replacing prior names).context_modulesparameter now accepts sets instead of lists.Documentation