520 Commits

Author SHA1 Message Date
Osama Sayegh
fac9227417
UX: Add admins and moderators to mandatory_values for accept_all_solutions_allowed_groups (#290) 2024-05-12 20:25:57 +02:00
Gabriel Grubba
9db72efb38
FEATURE: change status on unsolve & fix assign changes (#289)
* FEATURE: change status on unsolve & fix assign changes

When a topic is unsolved, it should have an option,
defined in the settings, to change its status to that state.

Fix assign changes when a topic was solved, previously it was
changing the assignee.

* DEV: Change names in tests and remove comments

* DEV: Update change status on solve implementation

Update tests to verify that the change status on solve feature is working as expected.
Change the implementation to loop throught the topic assignments and update the status.

* DEV: address review feedback
2024-05-08 15:17:45 -03:00
Discourse Translator Bot
e405ef1f6c
Update translations (#287) 2024-04-30 21:57:42 +02:00
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
Régis Hanol
2c96c5b67c
FEATURE: add new custom status filters (#286)
* FEATURE: add new custom status filters

Those can be used in /filter route.

Depends on https://github.com/discourse/discourse/pull/26770

Internal ref. /t/127278

* DEV: pin plugin for Discourse 3.3.0.beta2-dev
2024-04-26 16:17:50 +02:00
Penar Musaraj
a18ce6d712
FIX: Allow searching for unsolved posts with tags (#284)
When using the `status:unsolved` search filter, the plugin was only
returning results from topics in categories where solved was enabled.

This commit changes the search query to also include topics with tags
that have solved enabled via the `enable_solved_tags` site setting.

This fixes the `status:unsolved tags:tag1` search query.
2024-03-28 16:46:22 -04:00
Loïc Guitaut
4c6ddcf08d DEV: Fix new Rubocop offenses 2024-03-06 10:25:26 +01:00
Discourse Translator Bot
b50b118a79
Update translations (#283) 2024-03-05 16:48:05 +01:00
Selase Krakani
074188d566
DEV: Pin plugin for Discourse 3.3.0.beta1-dev (#281) 2024-02-27 11:34:34 +00:00
Jordan Vidrine
526a44644a
FIX: Nest combobox within LI element (#280) 2024-02-08 15:50:26 -06:00
Jarek Radosz
3a6d2e46a1
DEV: Don't use deprecated input components (#279) 2024-02-02 15:13:55 +01:00
Discourse Translator Bot
478517b328
Update translations (#278) 2024-01-30 17:04:47 +01:00
Discourse Translator Bot
b97a629091
Update translations (#277) 2024-01-23 18:30:29 +01:00
Martin Brennan
444dac8a9a
DEV: Change accept_all_solutions_trust_level to group setting (#276)
This refactor makes for easier testing and makes things
more organised, the guardian extensions had no testing
whatsoever and I need some to make the TL -> group change.
2024-01-23 11:45:32 +10:00
Jarek Radosz
fa3e1598aa
DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
Ted Johansson
b8684799cb
DEV: Update test setup to work with auto groups (#274)
We're updating core to change TL based access settings to be group based. This requires some updates of tests to work correctly. (The existing test setup gives false positives.)
2024-01-15 17:31:45 +08:00
Kris
dd8ebd24e8
DEV: add appEvent for solution-toggled (#273) 2023-12-20 11:58:47 -05:00
Krzysztof Kotlarek
5c84152b06
DEV: Replace deprecated min_trust_to_create_post (#272)
In https://github.com/discourse/discourse/pull/24740, `min_trust_to_create_topic` site setting was replaced by `create_topic_allowed_groups`. This PR replaces the former, deprecated one, with the latter.
2023-12-14 13:28:50 +11:00
Martin Brennan
3d3f20b68d
Revert "FIX: Use Guardian.basic_user instead of new (anon) (#270)" (#271)
This reverts commit 7edf6d86e4dd88bfdcf24a9659378f91f14ff25a.
2023-12-06 16:26:40 +10:00
Martin Brennan
7edf6d86e4
FIX: Use Guardian.basic_user instead of new (anon) (#270)
c.f. de983796e1b66aa2ab039a4fb6e32cec8a65a098

There will soon be additional login_required checks
for Guardian, and the intent of many checks by automated
systems is better fulfilled by using BasicUser, which
simulates a logged in TL0 forum user, rather than an
anon user.
2023-12-06 12:00:43 +10:00
Arpit Jalan
ad1b7c9608
FIX: make JSON_LD schema consistent with our microdata in core (#269)
* FIX: make JSON_LD schema consistent with our microdata in core

https://meta.discourse.org/t/alignment-of-schema-org-markup-between-qa-solved-dfp-core/279510
2023-11-22 21:22:22 +05:30
Discourse Translator Bot
bc9b8c41d4
Update translations (#268) 2023-11-21 14:37:03 +01:00
Martin Brennan
09c138014f
DEV: Change settings root from plugins: to discourse_solved (#267)
This is so the plugins settings are better categorized in the site settings UI.
2023-11-13 10:24:04 +10:00
Martin Brennan
6239acdb95
Metadata Update (#265)
Co-authored-by: AlexDev <104522507+alexdevlaeminck@users.noreply.github.com>
2023-11-08 11:29:38 -08:00
Kris
655c97e569
UX: add linked-stat class to profile stat (#266) 2023-11-06 13:30:52 -05:00
David Taylor
b0d3d5017e
FIX: Solved count on user profile (#264)
Followup to 8352a79145505763ed9ac23820e1cb219519a3e5
2023-10-30 12:57:34 +00:00
Discourse Translator Bot
f7f28cb56f
Update translations (#263) 2023-10-24 15:54:00 +02:00
David Taylor
8352a79145
DEV: Resolve deprecated use of registerConnectorClass (#262) 2023-10-23 22:26:07 +01:00
dependabot[bot]
82b219699d
Bump @babel/traverse from 7.20.10 to 7.23.2 (#261)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.10 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 18:26:23 +02:00
David Taylor
56d936be63
FIX: Correct getOwner import (#260)
As it's currently implemented, the fallback is essential here. `this` in a static method is `undefined`, and therefore cannot have an owner.

Unfortunately this plugin outlet does not seem to be tested in the plugin's own test suite. Core's test suite picked up this issue.

Followup to 3a0b46da7aa48e27e51c74e90b42c2083d89b4d5
2023-10-17 23:37:07 +01:00
Robert
3a0b46da7a
DEV: Resolve import deprecation (#259) 2023-10-17 21:50:50 +02:00
Discourse Translator Bot
493c30abe7
Update translations (#258) 2023-10-17 11:08:50 -04:00
Régis Hanol
b269689ddf
FIX: delete solution with post (#256)
Ensures we remove the solution when the post marked as the solution is deleted.

DEV: Added `IS_ACCEPTED_ANSWER_CUSTOM_FIELD` constant.
DEV: Refactored the `PostSerializer` for better readability.
PERF: Improved the `TopicViewSerializer`'s performance by looking up the `accepted_answer_post_info` from the stream first.

Internal ref. dev/112251
2023-10-13 19:06:03 +02:00
Discourse Translator Bot
29bf44807f
Update translations (#255) 2023-10-11 11:18:24 +02:00
Krzysztof Kotlarek
7e59ece789
FIX: granular webhooks (#248)
After those core changes we need additional translations

https://github.com/discourse/discourse/pull/23070
2023-10-09 03:26:29 +00:00
Meghna
9fbf43e2f0
FIX: do not show solved/unsolved filter when editing category (#254)
UX: add spacing for solved/unsolved filter dropdown
2023-09-26 18:39:17 +05:30
Discourse Translator Bot
3b9ecc69c6
Update translations (#253) 2023-08-29 15:51:57 +02:00
Discourse Translator Bot
9af8c4b892
Update translations (#252) 2023-08-23 09:30:42 +02:00
Penar Musaraj
b3c1d1730c
DEV: Pin plugin for Discourse 3.1 stable (#250) 2023-08-18 08:55:04 -04:00
dependabot[bot]
b5d487d6a5
Bump word-wrap from 1.2.3 to 1.2.4 (#246)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 01:31:42 +02:00
dependabot[bot]
02fd791c81
Bump semver from 6.3.0 to 6.3.1 (#245)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 10:44:55 +02:00
Jeff Wong
fd2c956865
update solved compatibility with 3.0 (#244) 2023-07-10 16:54:03 -07:00
David Taylor
9087034a4d
DEV: Modernise and fix behavior when used with loading-slider (#243) 2023-07-06 16:16:36 +01:00
Discourse Translator Bot
62fe282c75
Update translations (#242) 2023-06-20 17:28:18 +02:00
Juan David Martínez Cubillos
4032a1e35f
FIX: Search bug for status:unsolved returns topics from non-solution enabled categories (#241)
* FIX: Search bug for status:unsolved returns topics from non-solution enabled categories

* fixed rubocop issues
2023-06-20 09:52:02 -05:00
Penar Musaraj
7b90566b05
FIX: Take enable_names setting into account (#240) 2023-06-05 09:54:25 -04:00
Penar Musaraj
e0cd3d11c3
FIX: Respect "display name on posts" site setting (#239)
When displaying the accepted answer in the OP.
2023-06-01 11:50:50 -04:00
Isaac Janzen
306f39c222
DEV: Update eslint config (#238) 2023-05-26 14:30:43 -05:00
Discourse Translator Bot
113dbe3574
Update translations (#237) 2023-05-10 00:48:20 +02:00
Sam
b4a740382f
FEATURE: prioritize_solved_topics_in_search to prioritize solved topics (#236)
Many consumers of Discourse solved may want solved topics to show up more
prominently in search. New setting `prioritize_solved_topics_in_search`  (default off) allows 
bumping these topics to the top.

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2023-05-03 11:56:10 +10:00