cube-js / cube

📊 Cube — Universal semantic layer platform for AI, BI, spreadsheets, and embedded analytics
https://cube.dev
Other
17.96k stars 1.78k forks source link

Filters not round tripping when pasting query into playground #8908

Open mdsharpe opened 2 weeks ago

mdsharpe commented 2 weeks ago

Describe the bug

Filters are ignored when pasting a query into the playground. The query could be one that the playground itself has generated (through the user clicking and adding filters), but the filters are ignored when executing the query.

The query therefore does not round-trip.

To Reproduce

Steps to reproduce the behavior:

  1. Create a query through the playground UI.
  2. Click on the pencil icon to reveal the query JSON.
  3. Copy the JSON and store elsewhere.
  4. Clear down or otherwise change the query. Or open the playground in a new browser.
  5. Click the pencil icon and paste in the previous query.
  6. Run the query.

Expected behavior

I would expect the filters to be retained.

Version:

1.1.2