-
Notifications
You must be signed in to change notification settings - Fork 27
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
Scenes performance: Measurement #858
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
// Will calculate total time spent on Network | ||
function calculateNetworkTime(requests: PerformanceResourceTiming[]): number { |
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.
TODO: Add tests
|
||
// Wraps an arbitrary Promise in an observble that emits Promise state | ||
export function wrapPromiseInStateObservable(promise: Promise<any>): Observable<QueryResultWithState> { | ||
console.log('wrapPromiseInStateObservable', promise); |
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.
console.log('wrapPromiseInStateObservable', promise); |
@@ -46,3 +46,30 @@ export function registerQueryWithController<T extends QueryResultWithState>(entr | |||
}); | |||
}; | |||
} | |||
|
|||
// Wraps an arbitrary Promise in an observble that emits Promise state | |||
export function wrapPromiseInStateObservable(promise: Promise<any>): Observable<QueryResultWithState> { |
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.
TODO: Add test
There's a lot of changes here that's just code formatting. |
Ref https://github.com/grafana/hyperion-planning/issues/69
Read about the details in https://docs.google.com/document/d/1AXnxWJju0xS4zZWZUlFPONPKbMpEUYDHqvx0av3SyvE/edit?usp=sharing
📦 Published PR as canary version:
5.25.1--canary.858.11930656504.0
✨ Test out this PR locally via: