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

Fix gap between API-loaded job events and WS-streamed events #13075

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

keithjgrant
Copy link
Member

@keithjgrant keithjgrant commented Oct 18, 2022

SUMMARY

Fixes occasional bug where a gray loading bar appears between job events loaded via API and those streamed over websockets. When the first events stream over websockets, the page will now re-load the prior events from the API, updating them and the remoteRowCount to ensure accuracy.

I also fixed an off-by-one error that sometimes made the last API-fetched event not render even if it is already available in memory.

Addresses #13059

This bug generally only presents itself when the initial load of the job or its events via API takes too long to resolve, and already-completed events are missing from the fetched results. I was able to reproduce it with ~50% frequency by manually delaying the response when fetching the job object.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • UI

Copy link
Member

@AlexSCorey AlexSCorey left a comment

Choose a reason for hiding this comment

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

This looks good to me.

Copy link
Member

@akus062381 akus062381 left a comment

Choose a reason for hiding this comment

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

The follow button is acting up. It won't stay clicked, but keeps turning itself off.

@akus062381 akus062381 self-assigned this Nov 1, 2022
@akus062381 akus062381 merged commit 4643b81 into ansible:devel Jan 5, 2023
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.

None yet

3 participants