Skip to content

Add error handling for visualization designer natural language querying

What does this MR do and why?

Adds error handling for the visualization designer natural language querying flow.

  • form validation, when user click "generate" without entering a prompt
  • generate CubeJs mutation failure
  • aiCompletionResponse subscription failure
  • aiCompletionResponse subscription response body containing errors
  • receive malformed JSON query from backend

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image (no feedback) image (form validation)
image (stuck loading forever) image (request error, shared by all cases)

How to set up and validate locally

Apply setup steps for backend MR this one depends on:

Then:

  1. Follow these instructions to setup Product Analytics in GDK.
  2. Onboard Product Analytics by setting up the feature at Project > Analytics > Analytics dashboards.
  3. Visit the visualization designer at Project > Analytics > Analytics dashboards > Visualization designer.
  4. Click Generate with no prompt to trigger validation
  5. Enter a prompt, disable network in browser devtools to simulate an error, then click Generate

Related to #435785 (closed)

Edited by Elwyn Benson

Merge request reports