-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: propagate default values from trigger config #970
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Code Review SummaryThe changes look good overall and implement a useful feature for handling default values in trigger configurations. The implementation is clean and integrates well with the existing codebase. Strengths:✅ Clean implementation of default value propagation Suggestions for Improvement:
Overall Rating: 8/10 - Solid implementation with room for minor improvements in validation and testing. |
This comment was generated by github-actions[bot]! JS SDK Coverage Report📊 Coverage report for JS SDK can be found at the following URL: 📁 Test report folder can be found at the following URL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to aa7e1c1 in 1 minute and 46 seconds
More details
- Looked at
33
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. python/composio/client/collections.py:389
- Draft comment:
Consider changing the type ofdefault
toOptional[t.Any]
to indicate that it can beNone
. This aligns with its usage intriggers.py
. - Reason this comment was not posted:
Confidence changes required:50%
The addition of thedefault
attribute inTriggerConfigPropertyModel
is appropriate and aligns with the changes intriggers.py
. However, the type should beOptional[t.Any]
to indicate that it can beNone
. This change should be consistent with the usage intriggers.py
. The same applies to other similar models likeAuthSchemeField
andExpectedFieldInput
.
Workflow ID: wflow_jM4nCVygFr5opxKt
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on d119692 in 13 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. python/composio/client/collections.py:389
- Draft comment:
Setting a default value fordefault
inTriggerConfigPropertyModel
is a good practice to avoid uninitialized fields. - Reason this comment was not posted:
Confidence changes required:0%
The change made in the PR is to set a default value for thedefault
field inTriggerConfigPropertyModel
. This is a good practice to avoid potential issues with uninitialized fields.
Workflow ID: wflow_8Hi4IVmSzRfEDpJs
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
the
TriggerModel
's that are defined for triggers in the backend haveproperties
, and each property may have adefault
field which we were ignoring in the SDK. Now we store that in theTriggerConfig
object, and also add the default values into the config that we send in the request to activate a new trigger.Important
Propagate default values from trigger configurations to ensure correct trigger activation in the SDK.
config
in_enable_trigger()
intriggers.py
.default
field toTriggerConfigPropertyModel
incollections.py
.This description was created by
for d119692. It will automatically update as commits are pushed.