0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 04:48:33 +08:00
discourse/plugins/discourse-assign/spec
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
..
components FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
fabricators
integration FIX: Scope group archive and inbox actions to the group's messages (#41662) 2026-07-14 10:05:10 +05:30
jobs
lib FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
models FIX: show group Assignments tab based on assignable_level (#39085) 2026-04-08 16:50:27 +02:00
requests FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
serializers FIX: Serialize only a bookmark target's active assignment (#41397) 2026-07-06 06:34:22 +08:00
support
system FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
plugin_helper.rb FEATURE: Add category-level assignment permissions (#40412) 2026-06-08 09:59:40 -05:00
plugin_spec.rb FEATURE: Add category-level assignment permissions (#40412) 2026-06-08 09:59:40 -05:00