-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix: auto-uppercase auth mode in composio add
#884
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 e3283ff in 11 seconds
More details
- Looked at
15lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. python/composio/cli/add.py:61
- Draft comment:
Usingstr.upperfor the--auth-modeoption ensures the input is automatically converted to uppercase, aligning with expected values. This is a good change. - Reason this comment was not posted:
Confidence changes required:0%
The change to usestr.upperas the type for the--auth-modeoption is a good approach to ensure the input is automatically converted to uppercase. This aligns with the expected values forauth_mode.
Workflow ID: wflow_938crXRNOn3AMAW5
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 62a6321 in 19 seconds
More details
- Looked at
20lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. python/tests/test_cli/test_add.py:28
- Draft comment:
The test description fortest_add_githubis incorrect. It should reflect that the test involves adding GitHub with authentication, notno-auth. - Reason this comment was not posted:
Comment was not on a valid diff hunk.
Workflow ID: wflow_I8FB0h5fPsXi6uFI
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
|
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: |
Code Review SummaryThe changes look good overall and improve the user experience by making the auth mode parameter case-insensitive. The implementation is solid and focused. Positive Aspects✅ Automatic uppercase conversion improves UX by making auth modes case-insensitive Suggestions for Improvement
The changes are well-implemented and solve the issue effectively. The suggestions above are mainly about improving documentation and test coverage, but they're not blocking issues. |
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 6d35b92 in 17 seconds
More details
- Looked at
13lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. python/tests/test_cli/test_add.py:38
- Draft comment:
The test description should be more precise. Consider changing it to:Test 'composio add' with lowercase 'oauth2' for --auth-mode. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_NED4Q1uSBjK5tnoV
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
Allows doing:
Previously this would error saying
Expected {"API_KEY", "OAUTH2"}. Works now.Important
Fixes case sensitivity for
--auth-modeincomposio addby converting input to uppercase, allowing lowercase inputs.--auth-modeincomposio addby converting input to uppercase usingstr.upperinadd.py.oauth2without error.test_add_auth_mode_auto_uppercaseintest_add.pyto verify lowercase--auth-modehandling.This description was created by
for 6d35b92. It will automatically update as commits are pushed.