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
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
..
app FIX: Enforce group visibility when filtering users by group (#41370) 2026-07-03 07:08:52 +02:00
assets UX: Remove btn-default from bulk action buttons (#41131) 2026-06-23 13:57:23 -05:00
config I18N: Update translations (#41363) 2026-07-02 11:03:01 +02:00
db/migrate DEV: Skip backfill INSERTs in old migrations on fresh installs (#39976) 2026-05-13 13:59:28 +01:00
lib FEATURE: assigned trigger for workflows (#40831) 2026-06-12 16:42:27 +02:00
spec FIX: Serialize only a bookmark target's active assignment (#41397) 2026-07-06 06:34:22 +08:00
svg-icons
test/javascripts FEATURE: Add category-level assignment permissions (#40412) 2026-06-08 09:59:40 -05: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: Serialize only a bookmark target's active assignment (#41397) 2026-07-06 06:34:22 +08: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