-
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: Apps CLI parity #980
fix: Apps CLI parity #980
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.
❌ Changes requested. Reviewed everything up to 972746a in 37 seconds
More details
- Looked at
36
lines of code in1
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.
js/src/cli/apps.ts
Outdated
getOpenAPIClient(); | ||
const onlyShowEnabledApps = options.enabled; | ||
console.log(onlyShowEnabledApps) |
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.
Remove this console.log statement as it seems to be for debugging purposes and is not necessary for production code.
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 ab4ee4b in 14 seconds
More details
- Looked at
34
lines of code in1
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 ofconsole.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.
js/src/cli/apps.ts
Outdated
getOpenAPIClient(); | ||
const onlyShowEnabledApps = options.enabled; | ||
console.log(onlyShowEnabledApps) |
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.
This console.log statement appears to be a debugging leftover and should be removed from production code.
js/src/cli/apps.ts
Outdated
const command = this.program.command("apps"); | ||
const command = this.program.command("apps").option( | ||
"--enabled", | ||
"Only show enabled apps" |
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.
Consider adding a more descriptive help message for the --enabled flag, such as "Filter to show only enabled apps in the list"
Code Review SummaryThe changes look generally good with a few minor improvements needed: Positives:✅ The implementation of the --enabled flag is functionally correct Areas for Improvement:
Overall code quality: 7/10 - Functional but needs minor cleanup before merging. |
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! Incremental review on cc60b51 in 11 seconds
More details
- Looked at
12
lines of code in1
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.
Added the missing options for apps command in CLI
Important
Adds
--enabled
option toapps
command inAppsCommand
to filter and display only enabled apps, with updated handling inhandleAction
.--enabled
option toapps
command inAppsCommand
to filter and display only enabled apps.handleAction
method inAppsCommand
to handleenabled
option and filter apps accordingly.enabled
option value inhandleAction
.This description was created by
for cc60b51. It will automatically update as commits are pushed.