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

Add option to disable web hooks in dev mode #4

Closed
levinelson opened this issue Feb 7, 2019 · 5 comments
Closed

Add option to disable web hooks in dev mode #4

levinelson opened this issue Feb 7, 2019 · 5 comments

Comments

@levinelson
Copy link

Hi, love the plugin! It'd be awesome if there was an easy switch for disabling the web hooks while in dev mode, so I don't keep sending all sorts of test data to the web hook.

@brandonkelly
Copy link
Member

The next Craft CMS release will have a new disabledPlugins config setting, which you can use to disable the Webhooks plugin entirely in Dev environments:

// -- config/general.php --
'dev' => [
    'disabledPlugins' => ['webhooks'],
],

@devinellis
Copy link

devinellis commented Feb 20, 2019

Alternatively, maybe the webhook payload could include the environment name? It would allow for deeper integrations (e.g. separate channels in Slack). In Zapier I'm not seeing it as an option.

@brandonkelly
Copy link
Member

@devinellis Can you post as a separate issue?

angrybrad pushed a commit to craftcms/legacy-docs that referenced this issue Sep 24, 2019
@carlcs
Copy link
Contributor

carlcs commented Jul 15, 2021

@brandonkelly I’ve just read the issue in the CMS repo about the problem that can occur when disabling plugins on an environment basis (craftcms/cms#9576). It sounds like we need a better solution for disabling webhook calls.

brandonkelly added a commit that referenced this issue Sep 9, 2021
@brandonkelly
Copy link
Member

brandonkelly commented Sep 9, 2021

@carlcs Yeah good point. Just released v2.4.1 with a new disableAllWebhooks setting you can set to true from config/webhooks.php:

use craft\helpers\App;

return [
    'disableAllWebhooks' => (bool)App::env('DISABLE_WEBHOOKS'),
    // ...
];

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