# WebHookEventType and the solved and assign plugins

**URL:** <https://meta.discourse.org/t/webhookeventtype-and-the-solved-and-assign-plugins/144180>\
**Category:** Bug\
**Created:** [March 13, 2020, 8:32am UTC](https://meta.discourse.org/t/webhookeventtype-and-the-solved-and-assign-plugins/144180 "2020-03-13T08:32:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [March 13, 2020, 8:32am UTC](https://meta.discourse.org/t/webhookeventtype-and-the-solved-and-assign-plugins/144180/1 "2020-03-13T08:32:54Z")

</div>

In [this](https://github.com/discourse/discourse-solved/commit/8d883fba938528492815b1d015b85bcf5e83b47d) (fantastic) change that added webhooks to the solved plugin, [some functionality regarding the webhook event types](https://github.com/discourse/discourse/pull/9110/commits/af0822f590cb8aee009929dd4963fc62060a17ed) was moved to core.

However, this has some unwanted side effects.

1. on instances that do not have the solved or assign plugins installed, the event types are showing but the translation is missing, and (of course) the events are not available although they are being shown.

 ![afbeelding](https://global.discourse-cdn.com/meta/original/3X/c/d/cdbe3b5f44571cfc52b58c0f957dbeedb453a727.png)

1. the solved and assign plugins are currently **broken** on new stable and beta installs because they are missing the [seeds](https://github.com/discourse/discourse/pull/9110/commits/af0822f590cb8aee009929dd4963fc62060a17ed#diff-e5c47cd3f0bb5e2f2e4a7a9d44f80025)

My initial thought was to ask you to backport the seeds to stable to fix #2, but since there is an additional bug (#1) maybe it is better to leave the seeding code in the actual plugin and just [reserve the ID’s](https://github.com/discourse/discourse/pull/9110/commits/af0822f590cb8aee009929dd4963fc62060a17ed#diff-bab59ee31aa4d2c6d6fa4449436e6db0R14-R15) in the code in core.

Long story short, I think it would be better to move the

```
WebHookEventType.seed do |b|
  b.id = WebHookEventType::SOLVED
  b.name = "solved"
end

```

code back into the solved and assign plugins.

---

_[View the full topic](https://meta.discourse.org/t/webhookeventtype-and-the-solved-and-assign-plugins/144180)._
