Insights/api/insight view query
Created by: coury-clark
Closes #26451 (closed), #26458 (closed)
Adds a query insightViews
that behaves similar to insights
but with the new insight view model and semantics.
Resolves all insights available to the user context that are:
- Explicitly granted user permissions
- On a dashboard available to the user
I did some small refactoring of the insights and dashboard permissions query to be able to reuse them. This fixes the problem for insight series for #26458 (closed). Dashboards did not have this problem because they are already grouped on the dashboard id.