-
Notifications
You must be signed in to change notification settings - Fork 887
Template insights: Insights page keeps loading forever #8763
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
Comments
I know that we invested in restricting access to information about other users. An owner can see everyone, but what about the template admin? I'm asking as the Insights page reveals information about users (names, avatars, location?). @bpmct WDYT? Based on this decision we will know which party should we fix - BE, FE, or both. |
Can reproduce with a member role who is admin for only 1 template. |
This is again happening on dev.coder.com |
I am unable to reproduce it anymore. |
See screenshot:

Also, browser console logs show.

Visiting https://dev.coder.com/api/v2/insights/user-latency?template_ids=0d286645-29aa-4eaf-9b52-cc5d2740c90b&start_time=2023-07-19T00%3A00%3A00Z&end_time=2023-07-26T00%3A00%3A00Z
and
https://dev.coder.com/api/v2/deployment/stats
{"message":"Forbidden."}
A template admin should be able to see insights for the template he is the admin of. We can make a user template admin for a specific template while his general role is a member. In that case, also he should be able to see the insights for the said template.
cc: @bpmct @mtojek @BrunoQuaresma
The text was updated successfully, but these errors were encountered: