Commit Graph

425 Commits

Author SHA1 Message Date
Discourse CI a14050a9be DEV: Update CI workflows 2020-10-09 15:09:53 +00:00
Discourse Translator Bot 8f977eff1e Update translations 2020-10-06 15:18:12 +02:00
Discourse Translator Bot 786360498f Update translations 2020-09-29 13:02:40 +00:00
discoursehosting faef0d63bc
Add .discourse-compatibility for v2.5.x stable branch (#92)
Co-authored-by: Richard <richard@discoursehosting.com>
2020-09-25 15:05:01 -04:00
Justin DiRose 8d08f0a21f
DEV: Add plugin testing workflow 2020-09-25 11:25:20 -05:00
Justin DiRose c9d3d390c6
DEV: Add RubyGems as source 2020-09-25 11:24:53 -05:00
Justin DiRose 88f4359e43
DEV: Add linting GitHub Actions workflow 2020-09-25 11:22:29 -05:00
Discourse Translator Bot 5f12460052 Update translations 2020-09-22 13:06:27 +00:00
Discourse Translator Bot 705f6fe398 Update translations 2020-09-16 10:20:34 +00:00
Discourse Translator Bot 7fe6bb9ced Update translations 2020-09-15 13:06:44 +00:00
Ahmed Gagan 945974a5e4
FIX: Change to new discourse plugin-api for advanced search options (#91)
Changed to new discourse plugin-api and added status:unsolved option
2020-09-11 11:15:34 +01:00
Joffrey JAFFEUX 613267c3a2
DEV: apply coding standards (#90) 2020-09-04 13:22:22 +02:00
Discourse Translator Bot c89e0dda19 Update translations 2020-08-18 13:03:59 +00:00
Régis Hanol 9ecac7a3e2 FIX: add mutex around un/mark as solved
To prevent any race conditions when two users toggle the state of a reply.

(cf. https://meta.discourse.org/161104)
2020-08-17 16:33:24 +02:00
Discourse Translator Bot e16784fd07 Update translations 2020-08-11 13:06:04 +00:00
Discourse Translator Bot 80e4cb87ee Update translations 2020-08-05 13:30:01 +00:00
jbrw 6f1cf5a779
FEATURE - Category group moderators can (un)accept solutions, if enabled (#89) 2020-07-27 17:42:42 -04:00
Krzysztof Kotlarek 36579b774f FIX: check if add_post_custom_fields_allowlister exisits 2020-07-27 12:04:28 +10:00
Discourse Translator Bot 39c326d648 DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:20 +02:00
Krzysztof Kotlarek 57a8ec8a06 FIX: remove empty line 2020-07-15 09:44:32 +10:00
Krzysztof Kotlarek 10c31ffbd5 FIX: compatibility after allowlist rewording in Discourse 2020-07-15 09:34:02 +10:00
Neil Lalonde 075883ba5a
Update translations 2020-06-24 11:42:24 -04:00
Joe 5dd60d5511 UX: anon solved label color should match logged in button 2020-06-09 10:41:57 +08:00
Gerhard Schlager b2cf82fc3b DEV: Use consistent interpolation key format in translations 2020-06-02 19:15:45 +02:00
Joe 4e687d4846 UX: fix solved colors 2020-06-01 09:24:01 +08:00
Neil Lalonde 485f5fb36b
Update translations 2020-05-27 16:55:42 -04:00
Jarek Radosz 1f04cc075c DEV: Add rubocop-discourse gem 2020-05-06 18:29:23 +02:00
Neil Lalonde af53c1d551
Update translations 2020-05-04 10:51:02 -04:00
Krzysztof Kotlarek 922b4c3907
FIX: plugin backwards compatibility with Discourse 2.4 (#87)
Duration is a new keyword argument on Topic#set_or_create_timer and is not yet available in stable Discourse
2020-04-27 13:01:01 +10:00
Dan Ungureanu dc87d34594
FEATURE: Add include_subcategories report filter
Follow up to dafb1d7c7f.
2020-04-24 13:16:15 +03:00
Dan Ungureanu dafb1d7c7f
FIX: Include subcategories in report (#86) 2020-04-10 12:50:44 +03:00
Vinoth Kannan 329d8aff30 FIX: use the new duration attribute in `set_or_create_timer` method.
aad12822b7
2020-03-19 22:53:17 +05:30
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
Vinoth Kannan f4aea44db8 UX: Add "solved" status filter in advanced search page.
And rename `in:solved` to `status:solved`.
2020-03-06 08:57:38 +05:30
Neil Lalonde 5591056fe3 Update translations 2020-02-25 10:34:46 -05:00
Sam Saffron e5b08c71c4
FIX: do not allow whispers to be accepted as answers
This also cleans up the guardian so it is easier to reason about
2020-02-23 19:16:31 +11:00
jjaffeux 26d247e3d7 UX: makes solved status filter adapt width to its content 2020-02-20 11:04:26 +01:00
Neil Lalonde a531a2b370 Update translations 2020-02-13 15:07:07 -05:00
Krzysztof Kotlarek 230c2071ea
FEATURE: Add helpdesk and tech support badges (#84)
* FEATURE: Add helpdesk and tech support badges

When plugin is installed, we should create helpdesk and tech support
badges.

Both badges should be disabled by default
2020-02-05 11:14:12 +11:00
Neil Lalonde 4518ee02e5 Update translations 2020-01-20 11:23:11 -05:00
Vinoth Kannan 27da70052f FIX: keep quoted content in schema data if post excerpt is empty. 2020-01-04 19:25:42 +05:30
Neil Lalonde 2c80e6577f Update translations 2019-12-19 12:52:07 -05:00
Joffrey JAFFEUX c0f8e2eee0
FIX: applies a unique index for accepted_answer_post_id custom field (#83) 2019-12-12 12:00:28 +01:00
Sam Saffron 4c0545a827 DEV: lint files
This removes explicit return where not needed per rubocop rule
2019-12-10 12:01:54 +11:00
Joffrey JAFFEUX 15bc64bbc9 DEV: uses Discourse.redis instead of $redis 2019-12-03 10:49:58 +01:00
Penar Musaraj 96abbd9c19 Rubocop redundant return fix 2019-11-14 15:06:49 -05:00
Neil Lalonde ec4f0089f1 Update translations 2019-11-06 10:47:38 -05:00
Mark VanLandingham 2de08c8ad7 DEV: Remove unused import 2019-11-05 16:00:03 -06:00
Mark VanLandingham ad787656fe FIX: Pass in DecoratorHelper to PostCooked 2019-11-05 15:58:09 -06:00
Vinoth Kannan 797d450b73 FIX: keep onebox body content in post excerpts for schema data. 2019-11-02 17:31:38 +05:30