Skip to content

Code Insights: [BE] Add insights to dashboard mutation doesn't work

Created by: vovakulikov

Steps to reproduce:

  1. Open add/remove insights modal UI.
  2. Select a few insights in the list and click save
  3. See Dashboard not found error

GQL Request body

operationName: "AddInsightViewToDashboard"
query: "mutation AddInsightViewToDashboard($insightViewId: ID!, $dashboardId: ID!) {↵ addInsightViewToDashboard(↵ input: {insightViewId…"

dashboardId: "ZGFzaGJvYXJkOnsiSWRUeXBlIjoiY3VzdG9tIiwiQXJnIjo0MDQwMTN9"
insightViewId: "aW5zaWdodF92aWV3OiIyMHhJTXNYTHk5MlU3TDZaTWVSbHM1ZGpubk4i"

GQL Responce

data: null

errors: [
 {
   message: "dashboard not found"
   path: ["addInsightViewToDashboard"]
 }
]

But if we try to get this insight via gql API Screenshot 2021-11-18 at 09 34 17