-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Only fetch actions available to an entity during schema validation #1095
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
TriggerType, | ||
) | ||
from composio.client.exceptions import ComposioClientError, ComposioSDKError | ||
from composio.constants import PUSHER_CLUSTER, PUSHER_KEY | ||
from composio.constants import DEFAULT_ENTITY_ID, PUSHER_CLUSTER, PUSHER_KEY | ||
from composio.utils import help_msg, logging | ||
from composio.utils.shared import generate_request_id | ||
|
||
|
@@ -91,7 +91,7 @@ class ConnectedAccountModel(BaseModel): | |
connectionParams: AuthConnectionParamsModel | ||
|
||
clientUniqueUserId: t.Optional[str] = None | ||
entityId: t.Optional[str] = None | ||
entityId: str = DEFAULT_ENTITY_ID | ||
|
||
# Override arbitrary model config. | ||
model_config: ConfigDict = ConfigDict( # type: ignore | ||
Comment on lines
91
to
97
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Refactor: The change from an optional |
||
|
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.
Potential Issue: The addition of
DEFAULT_ENTITY_ID
to the import statement indicates a change in how entity IDs are managed across the codebase. This could potentially introduce a default value where it was previously optional or unspecified, affecting the behavior of entity-related operations.Actionable Steps:
DEFAULT_ENTITY_ID
is used to ensure it aligns with the intended logic and does not introduce unintended defaults.This change could have a broader impact on the system's behavior, especially if entity IDs are critical to the application's logic.