Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Fixes #20274.

Stops the log viewer from polling the server when the user has navigated away from the log viewer workspace.

How to test?

Go to the Log Viewer workspace (Search view), start the polling. Notice in the browser dev-tools (Network tab) that the requests are being made at the set interval. Navigate away from the Log Viewer workspace. Notice that the server requests have now stopped.

Copilot AI review requested due to automatic review settings September 29, 2025 18:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a bug where the log viewer continues polling the server for new logs even after the user navigates away from the log viewer workspace, causing unnecessary network requests.

  • Adds proper cleanup of polling interval when the workspace is disconnected
  • Extracts interval clearing logic into a reusable stopPolling() method
  • Ensures polling stops when user leaves the log viewer workspace

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, thanks @leekelleher.

@AndyButland AndyButland merged commit 418043b into main Sep 30, 2025
27 checks passed
@AndyButland AndyButland deleted the v16/bugfix/logviewer-stop-polling branch September 30, 2025 05:31
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.

Log viewer continues polling after closing

3 participants