Display validation errors on the dashboard
frontend issue for Validation and error handling for dashboard vis... (#396228 - closed)
Once the backend is returning validation errors on the GraphQL response, we can display these on the dashboard.
Implementation plan
- modify
panels_base.vue->showErrorStateto check for anyerrorson the givenvisualizationprop - skip fetching data for the panel if errors exist
- do not show retry button in this case
- display errors inside the error state popover: (copy to confirm)
- title:
Invalid visualization configuration - body:
- [bullet list of validation error messages]
Learn more about [chart visualizations](``https://docs.gitlab.com/ee/user/analytics/analytics_dashboards.html#define-a-chart-visualization``).
- title:
- also display fetch related errors (for example when a visualization has a valid structure, but an invalid CubeJS measure/dimension)
- when
fetchreturns an error, store theerror.message(if it exists) onthis.error, instead of a boolean - display the error inside the error state popover:
- title:
Failed to fetch data(this is what we have now) - body:
- [error message]
- title:
- when
- test coverage
Edited by Elwyn Benson