Allow accepted answers on topics
Go to file
Blake Erickson 8d883fba93
FEATURE: Publish WebHook event when solving/unsolving (#85)
* FEATURE: Publish WebHook event when solving/unsolving

This feature will publish a post edit webhook event whenever a solution
is accepted or unaccepted.

I went ahead and used the existing post-edit webhook because all the
post custom fields for the solved plugin are already included in the
post-edit serializer.

* Create Solved Event Webhook

This commit adds a solved event webhook that will only trigger when an
answer has been marked as accepted or unaccepted.

It uses 100 as the webhook ID. This way any new webhooks in core can
keep using lower numbers like 11, 12, 13, but plugins can use 101, 102,
etc.

* Removed functionality that was added to core

This [PR][1] to discourse core adds what what removed in this commit.

It is better to have this logic in core so that it is discoverable and
future webhooks won't end up accidentally using the same ID.

[1]: https://github.com/discourse/discourse/pull/9110

* UX: Add "solved" status filter in advanced search page.

And rename `in:solved` to `status:solved`.

* FEATURE: Publish WebHook event when solving/unsolving

This feature will publish a post edit webhook event whenever a solution
is accepted or unaccepted.

I went ahead and used the existing post-edit webhook because all the
post custom fields for the solved plugin are already included in the
post-edit serializer.

* Create Solved Event Webhook

This commit adds a solved event webhook that will only trigger when an
answer has been marked as accepted or unaccepted.

It uses 100 as the webhook ID. This way any new webhooks in core can
keep using lower numbers like 11, 12, 13, but plugins can use 101, 102,
etc.

* Removed functionality that was added to core

This [PR][1] to discourse core adds what what removed in this commit.

It is better to have this logic in core so that it is discoverable and
future webhooks won't end up accidentally using the same ID.

[1]: https://github.com/discourse/discourse/pull/9110

Co-authored-by: Vinoth Kannan <vinothkannan@vinkas.com>
2020-03-06 11:28:29 -07:00
.tx Update translations 2018-09-10 14:04:53 -04:00
app/serializers/concerns Rubocop redundant return fix 2019-11-14 15:06:49 -05:00
assets UX: Add "solved" status filter in advanced search page. 2020-03-06 08:57:38 +05:30
bin Add frozen string literal comment to files. 2019-05-13 11:04:27 +08:00
config FEATURE: Publish WebHook event when solving/unsolving (#85) 2020-03-06 11:28:29 -07:00
db FEATURE: Add helpdesk and tech support badges (#84) 2020-02-05 11:14:12 +11:00
spec FEATURE: Publish WebHook event when solving/unsolving (#85) 2020-03-06 11:28:29 -07:00
test/javascripts/acceptance Make eslint happy 2018-12-12 11:49:13 +01:00
.eslintrc Fix .eslintrc. 2017-08-02 16:34:46 +09:00
.gitignore Inherit rubocop config from discourse repo 2018-12-03 00:37:52 +01:00
.rubocop.yml Inherit rubocop config from discourse repo 2018-12-03 00:37:52 +01:00
.travis.yml DEV: Add Travis configuration 2018-10-19 14:31:09 +01:00
Gemfile Add frozen string literal comment to files. 2019-05-13 11:04:27 +08:00
Gemfile.lock Update translations 2020-02-13 15:07:07 -05:00
LICENSE add License 2016-06-06 23:15:49 +05:30
README.md Update README.md 2018-01-27 09:16:32 +08:00
plugin.rb FEATURE: Publish WebHook event when solving/unsolving (#85) 2020-03-06 11:28:29 -07:00

README.md

Discourse Solved

Provides a solved button on designated categories

How to Install this Plugin

To install Discourse Plugin - https://meta.discourse.org/t/install-a-plugin/19157

How to Check if Plugin is installed

Go to Admin > Plugins

You should now see:

screen shot 2018-01-27 at 9 09 47 am

What to expect if Plugin is installed

Inside the Plugins, you will have the following options:

screen shot 2018-01-27 at 8 57 35 am

How to enable it in your posts

New Categories - Check Allow topic owner and staff to mark a reply as the solution

test2

Old Categories - Go to that Category > Edit > Settings > Check Allow topic owner and staff to mark a reply as the solution

BONUS: How to add badges to those who answered correctly

https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155

License

MIT