Skip to content

Separate admin activity streams from regular user streams#13449

Draft
manuthecoder wants to merge 2 commits intomainfrom
claude/new-session-CY7k6
Draft

Separate admin activity streams from regular user streams#13449
manuthecoder wants to merge 2 commits intomainfrom
claude/new-session-CY7k6

Conversation

@manuthecoder
Copy link
Copy Markdown
Contributor

@manuthecoder manuthecoder commented Apr 9, 2026

Summary of the problem

Admin users were receiving activity updates through the same stream as regular users. This change separates admin activity streams to allow for independent filtering and management of admin-specific activities.

Describe your changes

closes #13408

  • Modified the activities view to conditionally subscribe to different Turbo streams based on user role and admin preferences
  • When an auditor is signed in and has enabled the "everyone" admin activities filter via cookie, they subscribe to the admin_activities stream instead of the regular activities stream
  • Updated the public activity initializer to broadcast admin activities to a dedicated admin_activities stream rather than the shared activities stream
  • This allows admins to selectively view all activities without affecting the regular activity feed for other users

The changes enable a cleaner separation of concerns where admin activity monitoring can be toggled independently without polluting the standard activity stream.

https://claude.ai/code/session_01R5J8wkuGRoJUg4VVnkcd2h

claude added 2 commits April 9, 2026 18:18
Admin users with the "show admin activities" toggle OFF were still
receiving all streamed activities because broadcasts always wrote to
the [user, "activities"] channel for every admin user.

Fix: broadcast admin-wide activities to a separate [user,
"admin_activities"] channel, and only subscribe to that channel when
the admin_activities cookie is set to "everyone". This matches the
existing page-load filter in MyController#activities.

Fixes #13408

https://claude.ai/code/session_01R5J8wkuGRoJUg4VVnkcd2h
Use mutually exclusive channel subscriptions: admins with toggle ON
subscribe only to "admin_activities" (which receives all activity
broadcasts, a superset of "activities"), and admins with toggle OFF
subscribe only to "activities". This avoids duplicate streamed entries
for admins who are also event members.

https://claude.ai/code/session_01R5J8wkuGRoJUg4VVnkcd2h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PublicActivity] Admins view all activites regardless of setting

2 participants