Advagg allows all functionality to be enabled/disabled by clicking a checkbox in the settings form (see PNG).

The advantage of disabling Advagg from the settings form is that Advagg can be disabled without uninstalling the module altogether which would reset all settings to default.

However, there is no Drush command for this though.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pmagunia created an issue. See original summary.

pmagunia’s picture

This is a patch I created for this feature request.

pmagunia’s picture

Status: Active » Needs review
NickDickinsonWilde’s picture

Not at my computer, not really working this weekend so haven't reviewed the patch yet.
However, have you tried using the built in drush commend cset? https://drushcommands.com/drush-8x/config/config-set.
Pretty sure that'll work fine with usage like: disable: drush cset advagg.settings enabled 0

pmagunia’s picture

Thank you for the quick response.

The command

drush cset advagg.settings enabled 0

does provide the functionality I had intended.

NickDickinsonWilde’s picture

Great! In that case, any reason to add the extra commands? I'd prefer if possible to avoid duplication.

pmagunia’s picture

Agreed, it's not good to duplicate code.

I did write the patch under the impression there was no other way to change that setting.

But without knowing the variable's name is enabled the user would have to dig through source code which is what I did.

NickDickinsonWilde’s picture

hmm yes that is definitely something you'd have to know to use. Would you say that a section mentioning that in the documentation & readme would cover that well enough?

pmagunia’s picture

That would definitely help.

There's a lot of good documentation already.

Should we put something under "Temporarily Disabling Advagg"?

The first place I would look for Drush help though is the command drush help.

If there was a way to add help to Drush without introducing a new command that would be ideal.

NickDickinsonWilde’s picture

Status: Needs review » Fixed

I've investigated and thought and heck, it's a small bit of code, pretty minimal duplication and it is better showing up with drush list... I'm just gonna commit it, thanks for the patch and discussion!

  • NickWilde committed 94aae11 on 8.x-3.x
    Issue #2901916 by pmagunia: Allow Advagg to be enabled/disabled with...
pmagunia’s picture

Thank you for reviewing the patch! Glad I could help out.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pmagunia’s picture

@NickWilde, was the patch credit supposed to show up on my profile? I’m not seeing it there.

NickDickinsonWilde’s picture

hmm... that's odd - I can see it on your profile: https://www.drupal.org/u/pmagunia/issue-credits/1066416
If you can't see that, I'm not sure.

pmagunia’s picture

I did get credit for contributing to the issue which I do see but shouldn’t there be a commit listed under Projects?