Skip to content
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: Apps CLI parity #980

Merged
merged 5 commits into from
Dec 11, 2024
Merged

fix: Apps CLI parity #980

merged 5 commits into from
Dec 11, 2024

Conversation

plxity
Copy link
Contributor

@plxity plxity commented Dec 11, 2024

Added the missing options for apps command in CLI


Important

Adds --enabled option to apps command in AppsCommand to filter and display only enabled apps, with updated handling in handleAction.

  • Behavior:
    • Adds --enabled option to apps command in AppsCommand to filter and display only enabled apps.
    • Updates handleAction method in AppsCommand to handle enabled option and filter apps accordingly.
  • Misc:
    • Minor logging change to display the enabled option value in handleAction.

This description was created by Ellipsis for cc60b51. It will automatically update as commits are pushed.

Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
composio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 9:12am

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 972746a in 37 seconds

More details
  • Looked at 36 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/cli/apps.ts:48
  • Draft comment:
    Consider using a logging library instead of console.log for error messages to provide more context and better manage log levels.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.

Workflow ID: wflow_DqoJN7nFRtSLnz85


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

getOpenAPIClient();
const onlyShowEnabledApps = options.enabled;
console.log(onlyShowEnabledApps)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this console.log statement as it seems to be for debugging purposes and is not necessary for production code.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 ab4ee4b in 14 seconds

More details
  • Looked at 34 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/cli/apps.ts:39
  • Draft comment:
    Consider using a logging library instead of console.log for error messages to allow better control over logging levels and outputs.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of console.log for error handling is not ideal for production code. It would be better to use a logging library or mechanism that can be configured for different environments.

Workflow ID: wflow_wDY8CotDz3eUDrsI


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

getOpenAPIClient();
const onlyShowEnabledApps = options.enabled;
console.log(onlyShowEnabledApps)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This console.log statement appears to be a debugging leftover and should be removed from production code.

const command = this.program.command("apps");
const command = this.program.command("apps").option(
"--enabled",
"Only show enabled apps"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a more descriptive help message for the --enabled flag, such as "Filter to show only enabled apps in the list"

@shreysingla11
Copy link
Collaborator

Code Review Summary

The changes look generally good with a few minor improvements needed:

Positives:

✅ The implementation of the --enabled flag is functionally correct
✅ The changes are focused and minimal
✅ Good type safety with TypeScript

Areas for Improvement:

  1. Remove the debug console.log statement
  2. Enhance the --enabled flag help message to be more descriptive
  3. Consider adding a test case for the new filtering functionality

Overall code quality: 7/10 - Functional but needs minor cleanup before merging.

Copy link

github-actions bot commented Dec 11, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-12273092526/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-12273092526/html-report/report.html

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 cc60b51 in 11 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_WhwfjEB66k7qb34w


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@plxity plxity enabled auto-merge (squash) December 11, 2024 09:09
@plxity plxity merged commit 2c338ea into master Dec 11, 2024
13 checks passed
@plxity plxity deleted the fix-cli-parity-2 branch December 11, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants