insights: any error in the insightViews query fails all results
Created by: coury-clark
When loading a list of insight views using the GraphQL query insightViews
, any error on any insight will fail the entire response and will not return data. Currently this breaks the entire product quite badly such that the insights page cannot load anything at all. Unfortunately, this state occurs because some data on the insight definition is invalid, so there is no way for the user to fix the problem.
We need to address a few things:
- If any insight throws an error we should limit the affect of this error to just the single insight
- We need to allow users to fix problems in metadata (missing contexts, etc), which means we need to return data and let them edit the insight.