Allow accepted answers on topics
Go to file
Gabriel Grubba 2b6e17d1d5
FEATURE: Prevents assign notification & change status on solved (#285)
* FEATURE: Prevents assign notification & change status on solved

Relates to this [topic](https://meta.discourse.org/t/assign-plugin-for-informatica/256974/94)

Add an event listener to `accepted_solution` event

Add `assigns_reminder_assigned_topics_query` modifier to not notify if
`prevent_assign_notification` setting is on.

Add settings to prevent assign notification and change status on solved

* DEV: Address review comments

Update SiteSettings names.

* DEV(WIP): Add tests for integration with discourse-assign

Add test for integration with discourse-assign plugin
checks if the assignment status is moved to `Done`

* DEV: lint solved_spec.rb

* DEV: Update test where it updates all assignments

Change `on(:accepted_solution)` is defined

Update test to use acting_user instead of admin

* DEV: lint & add tests for assigns_reminder_assigned_topics_query

Linted and added tests for `assigns_reminder_assigned_topics_query` modifier.

* DEV: Update tests based on review feedback

change plugin_initializer location

update spec with new tests to test integration with discourse-assign

* DEV: Add describe to spec for discourse-assign integration tests

* DEV: update describe name for discourse-assing spec integration

* DEV: Add more tests to spec for discourse-assign integration

* DEV: Lint solved_spec

* DEV: Lint and update spec to not have `p1` topic inside
2024-04-26 13:21:09 -03:00
.github/workflows DEV: Update CI workflows (#222) 2023-01-10 18:57:57 +00:00
app FEATURE: Prevents assign notification & change status on solved (#285) 2024-04-26 13:21:09 -03:00
assets FIX: Nest combobox within LI element (#280) 2024-02-08 15:50:26 -06:00
config FEATURE: Prevents assign notification & change status on solved (#285) 2024-04-26 13:21:09 -03:00
db DEV: Change accept_all_solutions_trust_level to group setting (#276) 2024-01-23 11:45:32 +10:00
spec FEATURE: Prevents assign notification & change status on solved (#285) 2024-04-26 13:21:09 -03:00
test/javascripts/acceptance DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
.discourse-compatibility FEATURE: add new custom status filters (#286) 2024-04-26 16:17:50 +02:00
.eslintrc.cjs DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
.gitignore DEV: apply coding standards (#90) 2020-09-04 13:22:22 +02:00
.prettierrc.cjs DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
.rubocop.yml DEV: Introduce syntax_tree for ruby formatting (#217) 2022-12-23 20:36:08 +00:00
.streerc DEV: Introduce syntax_tree for ruby formatting (#217) 2022-12-23 20:36:08 +00:00
.template-lintrc.cjs DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
Gemfile DEV: Introduce syntax_tree for ruby formatting (#217) 2022-12-23 20:36:08 +00:00
Gemfile.lock DEV: Fix new Rubocop offenses 2024-03-06 10:25:26 +01: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
about.json FEATURE: Prevents assign notification & change status on solved (#285) 2024-04-26 13:21:09 -03:00
package.json DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
plugin.rb FEATURE: Prevents assign notification & change status on solved (#285) 2024-04-26 13:21:09 -03:00
translator.yml DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:20 +02:00
yarn.lock DEV: Update linting (#275) 2024-01-16 17:50:43 +01: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