-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Check realtime mode in remote clock interceptor #6985
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,16 @@ function remoteClockRequestInterceptor(openmct, _remoteClockIdentifier, waitForB | |
return activeClock?.key === 'remote-clock' && !remoteClockLoaded; | ||
}, | ||
invoke: async (request) => { | ||
const { start, end } = await waitForBounds(); | ||
remoteClockLoaded = true; | ||
request.start = start; | ||
request.end = end; | ||
const timeContext = request?.timeContext ?? openmct.time; | ||
|
||
// Wait for initial bounds if the request is for real-time data. | ||
// Otherwise, use the bounds provided by the request. | ||
if (timeContext.isRealTime()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. We only want to take the bounds from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we clarify the comment? The way it reads seems confusing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I agree, I think this is good to go after making this comment more clear. |
||
const { start, end } = await waitForBounds(); | ||
remoteClockLoaded = true; | ||
request.start = start; | ||
request.end = end; | ||
} | ||
|
||
return request; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️