Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace Panel Does Not Reflect Active Users Connected via API #34914

Open
sudhir-sars opened this issue Jan 9, 2025 · 1 comment
Open

Workspace Panel Does Not Reflect Active Users Connected via API #34914

sudhir-sars opened this issue Jan 9, 2025 · 1 comment
Labels
Tasked Added to the internal issue tracking

Comments

@sudhir-sars
Copy link

Workspace Panel Not Reflecting API-Connected Active Users (Potentially Related to Issue #20060)

Description:

Workspace panel does not reflect the correct number of active users when users are connected via the API. Despite having users set as active, the Workspace panel displays zero users online, busy, or away. However, the Users panel correctly lists these users as active or pending.

Steps to reproduce:

  1. Connect multiple users via the API and set their status to active using login_rocket_api.
  2. Connect additional users via the browser interface.
  3. Check the Workspace panel for user activity.
  4. Verify user activity in the Users panel.

Expected behavior:

The Workspace panel should accurately reflect the number of users online, busy, or away, including users connected via the API.

Actual behavior:

The Workspace panel displays zero users online, busy, or away, while the Users panel shows multiple users connected (e.g., 2 users via the browser and 15 users via the API). This inconsistency persists despite users being set as active.

Screenshot of Workspace Panel:

image

Screenshot of Users Panel:

image
image

Server Setup Information:

  • Version of Rocket.Chat Server: 7.2.0-develop
  • License Type: Starter
  • Number of Users: 30+
  • Operating System: Linux
  • Number of Running Instances: 2
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v20.18.0
  • MongoDB Version: 7.0.5 / wiredTiger

Client Setup Information:

  • Desktop App or Browser Version: Multiple browsers
  • Operating System: Windows/WSL

Additional context:

The issue creates a discrepancy between user activity as displayed in the Workspace panel and actual user connections managed via the API and browser. This makes it challenging to monitor real-time user activity effectively.

Relevant logs:

No error logs were identified during the testing. However, the following information is present in the Workspace panel:

  • Online users: 0
  • Busy users: 0
  • Away users: 0
  • Offline users: 0

Please let me know if additional logs or context are needed to investigate further.

@reetp
Copy link

reetp commented Jan 9, 2025

Thank you for your comprehensive report. Very professional!

Makes my life much easier.

I'm not sure if this is a "policy" decision or not but I'll refer it to the team.

@reetp reetp added the Tasked Added to the internal issue tracking label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tasked Added to the internal issue tracking
Projects
None yet
Development

No branches or pull requests

2 participants