insights: fix transactionality for add / remove view to dashboard mut…
Created by: coury-clark
Fixes #27451 (closed)
Fixes transactionality in the add / remove view to dashboard mutations.
- Adds transaction support to permissions validator
- Fixes a bug in the mutations where an empty dashboard response violated the nullability constraint in the GraphQL API (apparently
errors.Wrap
returns nil if the passederr
is also nil