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

Do not extend session when fetching cluster overview. (5.0) #15508

Merged
merged 1 commit into from May 16, 2023

Conversation

dennisoelkers
Copy link
Member

Note: This is a backport of #15465 to 5.0.

Description

Motivation and Context

Prior to this PR, any page that loads the ClusterOverviewStore would trigger a permanent session extension. This happens because the store is listening to NodesStore.list, calling cluster() for every update. This function is doing a fetch in turn, which is not disabling session extension.

This PR is fixing this by using fetchPeriodically for the cluster overview call.

Fixes Graylog2/graylog-plugin-enterprise#5158.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

* Do not extend session when fetching cluster overview.

* Adding changelog snippet.

(cherry picked from commit e46367a)
@dennisoelkers dennisoelkers force-pushed the fix/session-expiration-on-nodes-page-5.0 branch from 0eb3a3f to 706ade8 Compare May 15, 2023 14:25
@linuspahl linuspahl merged commit 72b6ba0 into 5.0 May 16, 2023
5 checks passed
@linuspahl linuspahl deleted the fix/session-expiration-on-nodes-page-5.0 branch May 16, 2023 14:23
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.

None yet

2 participants