Skip to content

Introducing Session Persistence Post-Meeting - #19534

Merged
TiagoJacobs merged 2 commits into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:session-cleanup-delay
Feb 5, 2024
Merged

TiagoJacobs merged 2 commits into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:session-cleanup-delay

Conversation

@gustavotrott

@gustavotrott gustavotrott commented Jan 29, 2024 •

Copy link
Copy Markdown
Contributor

This Pull Request addresses an issue where user sessions are immediately removed after a meeting ends. This creates a problem for users who refresh their browser and seek information about the meeting they were part of, as there's no retained information about the ended meeting or the user's involvement.

  • With this PR, user sessions will now remain active for a specified duration after a meeting concludes. This allows users to access important information about their participation, including whether the meeting has ended, if they were ejected, or if they logged out.
  • To avoid side effects, we introduce a new Map structure for storing sessions of removed users. This Map will be exclusively accessed by the Graphql AuthHook, ensuring no impact on other service authentication behaviors.
  • A new configuration parameter, sessionsCleanupDelayInMinutes, is introduced. Administrators can set a custom delay time for session cleanup or opt to keep sessions alive indefinitely. The default value is set to 60 minutes (1 hour).
  • The Hasura role pre_join_bbb_client has been renamed to not_joined_bbb_client. This change reflects the role's applicability both before and after joining a meeting.
  • It introduces a new field ended to graphql Type meeting, it can be fetched even when user left the meeting by user_current:
query {
  user_current {
    meeting {
      ended
    }
  }
}
  • As an interim measure, the database will store information about all meetings indefinitely. This approach will be revised in a subsequent PR for optimal data management.

@gustavotrott gustavotrott added this to the Release 3.0 milestone Jan 29, 2024
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions

C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

idea Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@github-actions

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

@Tainan404
Tainan404 requested a review from TiagoJacobs February 5, 2024 14:25
@TiagoJacobs

Copy link
Copy Markdown
Member

Hello @gustavotrott - I am merging this PR.

I see you modified some code that is already commented, it would be good to refactor it in future, removing the commented code.

This is not urgent, so please add it on your list as low priority.

Thanks!

@TiagoJacobs
TiagoJacobs merged commit 3e72e2d into bigbluebutton:v3.0.x-release Feb 5, 2024
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.

2 participants