Skip to content

enhance: send events for adding/removing favourite items - #3229

Open
schweigisito wants to merge 1 commit into
mainfrom
favourite-sse-event
Open

enhance: send events for adding/removing favourite items#3229
schweigisito wants to merge 1 commit into
mainfrom
favourite-sse-event

Conversation

@schweigisito

Copy link
Copy Markdown
Member

Description

This PR may fix #2933 and provides the events for web UI being able to react on favourite events (as also reported in opencloud-eu/web#3016

Enhancement: Send SSE events when items are added to or removed from favourites

Currently, marking or unmarking a resource as a favourite does not notify connected web clients, so favourite state changes made in one browser tab or on another device only becomes visible after a manual reload. The graph service already published LabelAdded/LabelRemoved events on the event bus for this; the clientlog service now also consumes them and forwards item-favorite-added/item-favorite-removed SSE notifications to the affected user, mirroring how renames and moves are already announced.

Related Issue

Motivation and Context

Making web UI react on favourite changes, backend needs to generate and send events.

How Has This Been Tested?

  • built dev-docker image
  • checked sse browser connection of a logged-in user and watched for item-favorite-removed and item-favorite-added events

Screenshots (if appropriate):

Screenshot 2026-08-03 at 15 16 45

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation added

@codacy-production

codacy-production Bot commented Aug 3, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics -38 duplication

Metric Results
Duplication -38

View in Codacy

🟢 Coverage 0.00% diff coverage · -0.02% coverage variation

Metric Results
Coverage variation -0.02% coverage variation (-1.00%)
Diff coverage 0.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b9adb50) 83834 19269 22.98%
Head commit (43c0c6c) 83856 (+22) 19257 (-12) 22.96% (-0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3229) 22 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Favorites don't send SSE events

1 participant