-
Notifications
You must be signed in to change notification settings - Fork 937
feat!: add sections
parameter to template insights
#10010
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
Conversation
sections
parameter to template insightssections
parameter to template insights
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.
LGTM! Just a few small comments.
@@ -105,11 +106,11 @@ export const TemplateInsightsPageView = ({ | |||
<UserLatencyPanel data={userLatency} /> | |||
<TemplateUsagePanel | |||
sx={{ gridColumn: "span 3" }} | |||
data={templateInsights?.report.apps_usage} | |||
data={templateInsights?.report?.apps_usage} |
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.
Did we not need any change for interval_reports
which is now possibly also undefined?
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.
I will leave it for @BrunoQuaresma to polish the FE side.
Related #9495
This PR adds
sections
parameter to template insights. The idea is to shrink the endpoint response, and reduce the number of DB calls.Changes:
report
andinterval_reports
can be omitted in/insights/templates
sections
HTTP parameter for/insights/templates
(values:report
,interval_reports
)report