0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-assign
Régis Hanol 0f5ab6e940
FIX: Resolve groups when bulk assigning topics (#41867)
Previously, picking a group in the bulk assign modal always failed with
a bodyless 500: the client only sent `username`, `group_name` was not a
permitted bulk action parameter, and the bulk operation only ever
resolved a `User` — so `Assigner` received `nil`, treated it as a
`Group`, and crashed dereferencing it.

This change routes both the bulk and single-topic paths through one
`DiscourseAssign::AssigneeResolver`, makes `Assigner#assign` return a
reason instead of raising for caller-supplied input, and surfaces
per-topic refusals through `@errors` so a partially applied bulk assign
explains itself instead of reporting success.

Ref - t/188206
2026-07-21 16:18:58 +02:00
..
app FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
assets FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
config FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
db/migrate DEV: Skip backfill INSERTs in old migrations on fresh installs (#39976) 2026-05-13 13:59:28 +01:00
lib FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
spec FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
svg-icons
test/javascripts FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

Assign Plugin

Allows you to assign topics and individual posts (both private and public) to a user or group.

For more information, please see: https://meta.discourse.org/t/discourse-assign/58044