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

Drush should add an extra confirmation step when installing experimental modules #2770

Closed
anavarre opened this issue May 22, 2017 · 8 comments

Comments

@anavarre
Copy link

Current state:

$ drush @drucker.local en -y layout_discovery
 [success] Successfully enabled modules: layout_discovery

Sample expected state:

$ drush @drucker.local en -y layout_discovery
WARNING: You're trying to install an experimental module. See https://www.drupal.org/node/XXXXX
I understand the risks [Y/n] y
 [success] Successfully enabled modules: layout_discovery

See https://www.drupal.org/node/2880374 for background.

@anavarre anavarre changed the title Drush should add an extra confirmation when installing experimental modules Drush should add an extra confirmation step when installing experimental modules May 22, 2017
@weitzman
Copy link
Member

weitzman commented May 22, 2017

I support that issue on drupal.org.

As for Drush, I'm a bit resistant to nanny-nags. Mhess wants a confirm when you enable a module that hasn't yet opted into security team coverage. Drush is not your vehicle for disclaimers and CYA!

@timplunkett
Copy link
Contributor

If you pass -y you shouldn't have to confirm again. But it'd be nice to add the experimental message into the prompt (even if you bypass it)

@anavarre
Copy link
Author

anavarre commented May 22, 2017

If you pass -y you shouldn't have to confirm again.

That's the thing. Passing -y would leave you with no option but to discover after the fact that this was an experimental module. You'd probably want to know about that before installing the module, especially if it conflicts with an already installed module.

From a UX standpoint the following is probably not great, but I'd rather see an experimental module installed only when a special parameter is invoked with pm-enable, e.g. --accept-experimental, no matter if there's a -y argument already passed.

E.g.

$ drush en -y devel, layout_discovery
(normal messages)
layout_discovery is an experimental module and wasn't automatically enabled.
If you're sure you wish to enable it, pass the --accept-experimental parameter.

@timplunkett
Copy link
Contributor

But isn't that what -y means? "Damn the consequences and just do the thing already!"

discover after the fact that this was an experimental module
Also, if you can figure out the machine name of a module, you can look this up too.

@anavarre
Copy link
Author

It sure is. I guess I'm just trying to help people make an educated choice based on the special status of experimental modules when they have to make an important decision like installing a module.

@greg-1-anderson
Copy link
Member

An extra non-confirmed warning message is sufficient here. Folks can always un-install the module if they did not realize in advance that it was experimental.

@weitzman
Copy link
Member

weitzman commented Jun 1, 2017

FYI confirmation is no longer needed when enabling a module unless more dependencies need to be also enabled. Same for uninstall. As of Drush9.

@weitzman
Copy link
Member

Drupal core can add a nag if it wants to.

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

No branches or pull requests

4 participants