-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add maintenance-mode command #153
Comments
Adding commands:
PR: #174 |
@serundeputy Thanks for the PR! I posted a review. Sorry in advance for being so pedantic... |
I'm working on addressing the feedback that @BWPanda raised on PR #174 I've also done a bit to handle what is returned in I'd like to understand what people might use I note that @jenlampton said on #186 that:
Please could you elaborate? @indigoxela @klonos @BWPanda @quicksketch - do you have any thoughts about states, whether in core or from contrib that it would be useful to be able to set via Another thing I wondered for |
Currently the maintenance_mode is the only useful state to set I'm aware of. There might be contrib states... not sure. |
Yeah, same as @indigoxela. Maintenance mode seems by far the most useful one, but I could see some potential ones:
|
Big thanks to @serundeputy for the initial work, thanks to @BWPanda for the feedback on that which has informed this and thanks for feedback from @indigoxela and @quicksketch . This builds on earlier work but ensures the type of each state is respected, and also presents each state type in a sensible format. Only integers, booleans and strings can be set with state-set and the maintenance-mode enforces a boolean. Boolean states can be set with either true/false (case insensitve) or 1/0 but are displayed as TRUE/FALSE. I'd be grateful for any testing and feedback. |
It works! 👍 I tested with maintenance-mode (the command), state-get, state-set (with maintenance_mode, and update_last_check...). The error messages when one does something wrong (like typos) are a bit misleading sometimes. And I'm not really sure if we need two commands that do (mostly) the same thing (bee maintenance-mode vs. bee state-set mainentance_mode). But @yorkshire-pudding had some good arguments. 😉 So my conclusion is: it works, but UX might get improved in follow-ups. |
@indigoxela - thanks for your feedback in office hours earlier today. |
@yorkshire-pudding this is great! Much easier to work with now. I tried with missing and wrong arguments and the messages really help now to do things properly. 👍 |
Thanks @indigoxela and @klonos |
Authored-by: serundeputy <[email protected]> and yorkshire-pudding <[email protected]>
Thanks to @serundeputy, @BWPanda, @indigoxela , @klonos, @quicksketch , @jenlampton . This is now merged. |
On Drupal sites, using I would include the maintenance mode activation at the beginning and deactivation at the end of my update process. I think a simple command to do this would be good. I can see 2 possible avenues:
state-set
andstate-get
command set likeconfig-set
andconfig-get
if there are other states that it would be useful to be able to set using a bee command.I have found a workaround to do this:
but I think a command would be better.
The text was updated successfully, but these errors were encountered: