-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Review] Followups after #552 review #706
Conversation
Ccing @rBurgett for visibility on this. No pressure for review but feel free to add comments. |
WalkthroughThe recent changes significantly enhance the codebase's functionality and clarity by introducing new commands, improving error handling, and refining documentation. Key modifications include a quick startup command for localnet, updates to testing configurations, and renaming functions for greater accuracy. Error messages have been standardized, and comprehensive feature specifications for service management have been initiated. Overall, these changes aim to boost usability and maintainability while addressing potential issues in the code. Changes
Recent review detailsConfiguration used: CodeRabbit UI Files ignored due to path filters (1)
Files selected for processing (4)
Files skipped from review due to trivial changes (1)
Files skipped from review as they are similar to previous changes (2)
Additional comments not posted (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
@adshmh Could you PTAL at this? I think some of the TODOs here are also good onboarding tasks to get really in the weeds of this repo to take on larger ticket items. |
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.
Actionable comments posted: 3
Outside diff range, codebase verification and nitpick comments (2)
x/service/module/tx_add_service.go (2)
Line range hint
1-24
:
Reminder: Address the TODO comments.The file contains TODO comments for updating the command and ensuring proper ownership checks.
Do you want me to help with updating the command and implementing the ownership checks, or open a GitHub issue to track these tasks?
Line range hint
25-49
:
Update function name and usage.The function
CmdAddService
should be renamed toCmdUpdateService
to reflect the new functionality.- func CmdAddService() *cobra.Command { + func CmdUpdateService() *cobra.Command {
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.
Great comments, this blends well with the source owner feature.
Left some questions and comments but also seeing some go-test
check failures.
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. You may need to run GCP workloads (requires changing the namespace to 706) |
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.
LGTM.
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
x/service/module/tx_add_service.go (1)
Line range hint
28-57
:
Update command usage and error messagesThe command usage and error messages should be updated to reflect the new functionality of updating existing services.
- Use: fmt.Sprintf("add-service <service_id> <service_name> [compute_units_per_relay: default={%d}]", types.DefaultComputeUnitsPerRelay), - Short: "Add a new service to the network", - Long: `Add a new service to the network that will be available for applications, + Use: fmt.Sprintf("update-service <service_id> <service_name> [compute_units_per_relay: default={%d}]", types.DefaultComputeUnitsPerRelay), + Short: "Update an existing service on the network", + Long: `Update an existing service on the network that will be available for applications,
func CmdAddService() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: fmt.Sprintf("add-service <service_id> <service_name> [compute_units_per_relay: default={%d}]", types.DefaultComputeUnitsPerRelay), |
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.
Rename the function to CmdUpdateService
The function name should be updated to reflect the new functionality of updating existing services.
- func CmdAddService() *cobra.Command {
+ func CmdUpdateService() *cobra.Command {
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
func CmdAddService() *cobra.Command { | |
cmd := &cobra.Command{ | |
Use: fmt.Sprintf("add-service <service_id> <service_name> [compute_units_per_relay: default={%d}]", types.DefaultComputeUnitsPerRelay), | |
func CmdUpdateService() *cobra.Command { | |
cmd := &cobra.Command{ | |
Use: fmt.Sprintf("add-service <service_id> <service_name> [compute_units_per_relay: default={%d}]", types.DefaultComputeUnitsPerRelay), |
Summary
Minor follows-ups (improvements & capturing TODOs) while reviewing #552 after it was merged.
Nothing is critical, but capturing work and improvements while it's fresh.
Issue
Type of change
Select one or more:
Testing
make go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.make trigger_ci
if you want to re-trigger tests without any code changesSanity Checklist
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Documentation