discourse-assign/spec
Loïc Guitaut 80604e9012 FIX: Display assignments in user menu properly
Currently, we display a mix of topics and notifications in the user menu
assignments tab. This has a number of issues like having to maintain
hard to understand code instead of simply relying on the notifications
system we have, we can’t display more than one assignment per topic and
it’s not clear if an assignment is for a topic or a post nor if it’s a
group assignment or an individual one.

This patch addresses those issues by relying on the notifications system
we’re using for most of the other user menu tabs instead of a custom
implementation. This led to some heavy refactoring but it was
worthwhile as things are a bit more normalized and easier to reason
about. Instead of serializing topics with different attributes to access
various assignments, we now simply return a notification for each
existing assignment.

The UI changed a bit: tooltips are now explaining if the assignment is
for a topic or a post and if it’s for an individual or a group. Icons
are also properly set (so no more individual icon for group assignments)
and the assigned group name is displayed.

The background jobs signatures changed a bit (`assignment_id` is now
needed for the unassign job) so when deploying this patch, it’s expected
to have some jobs failing. That’s why a post-migration has been written
to handle the creation of missing notifications and the deletion of
extra notifications too.
2023-11-08 15:26:57 +01:00
..
components FEATURE: allow adding note when bulk assigning topics (#466) 2023-05-02 15:20:44 +05:30
fabricators FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
integration DEV: Replace #pluck_first monkey patch with native #pick (#467) 2023-05-09 12:59:41 +08:00
jobs FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
lib FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
models FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
post_migrations FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
requests FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00
serializers DEV: Bump rubocop-discourse and correct violations (#409) 2022-12-23 19:55:31 +00:00
support DEV: Bump rubocop-discourse and correct violations (#409) 2022-12-23 19:55:31 +00:00
system DEV: Skip a flaky spec (#508) 2023-09-12 07:43:24 +08:00
plugin_spec.rb FIX: Display assignments in user menu properly 2023-11-08 15:26:57 +01:00