0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-assign/spec/lib
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
..
discourse_assign
discourse_workflows/nodes FEATURE: schema based workflow (#41684) 2026-07-15 13:22:29 +02:00
assigner_spec.rb FIX: Resolve groups when bulk assigning topics (#41867) 2026-07-21 16:18:58 +02:00
pending_assigns_reminder_spec.rb
random_assign_utils_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
topic_query_spec.rb FIX: Scope assigned group PMs to participant visibility (#36073) 2025-11-18 11:48:28 +08:00