0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-assign/spec/system
Alan Guo Xiang Tan 7ce1992ec1
FIX: Serialize only a bookmark target's active assignment (#41397)
This PR makes a bookmark's "Assigned to …" badge reflect only the
current, active assignment of the exact item that was bookmarked.

In discourse-assign, a topic or an individual post can be assigned to a
user or group, and bookmark lists show a badge for it. Previously,
`BookmarkQuery.on_preload` loaded every assignment belonging to a
bookmarked topic — without filtering on `active`, and keyed by
`topic_id` regardless of `target_type`. Bookmarks kept showing "Assigned
to …" after an assignment was deactivated (for example by
`unassign_on_close`), and when a topic carried both a direct assignment
and post-level assignments, whichever row loaded last won, so a bookmark
could show an assignee that was never assigned the bookmarked item at
all. Post bookmarks had a second problem: the
`UserBookmarkBaseSerializer` extension read the topic's assignment for
them, so a bookmark on an assigned post never showed that post's own
assignee.
2026-07-06 06:34:22 +08:00
..
page_objects FIX: avoid double arrow key nav for select-kit-filter (#41443) 2026-07-03 18:50:57 -04:00
assign_post_spec.rb FEATURE: add bootstrap first admin job (#39851) 2026-05-08 16:16:18 -03:00
assign_topic_spec.rb FIX: Publish "/staff/topic-assignment" on topic re-open (#39542) 2026-04-27 10:41:22 +02:00
bulk_assign_spec.rb FEATURE: add bootstrap first admin job (#39851) 2026-05-08 16:16:18 -03:00
core_features_spec.rb
group_assigned_spec.rb FIX: show group Assignments tab based on assignable_level (#39085) 2026-04-08 16:50:27 +02:00
group_preferences_spec.rb
user_menu_spec.rb
user_preferences_spec.rb
viewing_assignments_in_the_bookmark_list_spec.rb FIX: Serialize only a bookmark target's active assignment (#41397) 2026-07-06 06:34:22 +08:00