-
Notifications
You must be signed in to change notification settings - Fork 192
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
CLI: Add RabbitMQ options to verdi profile setup
#6453
CLI: Add RabbitMQ options to verdi profile setup
#6453
Conversation
e6ffbad
to
9665a16
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6453 +/- ##
==========================================
+ Coverage 77.51% 77.74% +0.24%
==========================================
Files 560 561 +1
Lines 41444 41752 +308
==========================================
+ Hits 32120 32456 +336
+ Misses 9324 9296 -28 ☔ View full report in Codecov by Sentry. |
9665a16
to
19cbf11
Compare
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.
Just took it for a spin and looks all good to me. Only noted a small typo.
The `verdi profile setup` command was added to replace the deprecated command `verdi setup`. The new command dynamically generates a subcommand for each installed storage plugin. However, the new command did not allow to configure the connection parameters for the RabbitMQ broker, unlike `verdi setup`. These common options are now added to the subcommands. In addition, a new option is added `--use-rabbitmq/--no-use-rabbitmq`. This flag is on by default, to keep the old behavior of `verdi setup`. When toggled to `--no-use-rabbitmq`, the RabbitMQ configuration options are no longer required and are also not prompted for. The profile is then configured without a broker.
Co-authored-by: Julian Geiger <[email protected]>
bb7b210
to
ad7bef6
Compare
Thanks for the review @GeigerJ2 |
Hi guys, again sorry for being a late party-pooper. My main question is if we want to add these RabbitMQ-specific options to all of the setup commands. Now that we have a command for reconfiguring rabbitmq, can't we just use the defaults and then point the user to this command in case they want to use others? I think we already foresee that we want to try and add a different broker than RabbitMQ. Presumably the options for this broker might be different. Are we going to add all the options for that broker here as well? Should we then also rename the rabbitmq options? (which are now all I would stick with just adding |
The `verdi profile setup` command was added to replace the deprecated command `verdi setup`. The new command dynamically generates a subcommand for each installed storage plugin. However, the new command did not allow to configure the connection parameters for the RabbitMQ broker, unlike `verdi setup`. These common options are now added to the subcommands. In addition, a new option is added `--use-rabbitmq/--no-use-rabbitmq`. This flag is on by default, to keep the old behavior of `verdi setup`. When toggled to `--no-use-rabbitmq`, the RabbitMQ configuration options are no longer required and are also not prompted for. The profile is then configured without a broker.
The
verdi profile setup
command was added to replace the deprecated commandverdi setup
. The new command dynamically generates a subcommand for each installed storage plugin.However, the new command did not allow to configure the connection parameters for the RabbitMQ broker, unlike
verdi setup
. These common options are now added to the subcommands.In addition, a new option is added
--use-rabbitmq/--no-use-rabbitmq
. This flag is on by default, to keep the old behavior ofverdi setup
. When toggled to--no-use-rabbitmq
, the RabbitMQ configuration options are no longer required and are also not prompted for. The profile is then configured without a broker.