-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Describe the bug
I am running the cubejs/cube:latest docker image against a database.
When I check the Data Model section, I can list the Tables but I can only generate Javascript models.
Yaml generation is disabled because I seem to be on an <v1 version. However, the context XHR request returns that i'm on v1.1.2
Something must be wrong when retrieving the data from the context in the Playground app, making it fall back to []?
The affected code is here:
cube/packages/cubejs-playground/src/pages/Schema/SchemaPage.tsx
Lines 190 to 193 in 37fd273
| const [major, minor] = playgroundContext.coreServerVersion | |
| ? playgroundContext.coreServerVersion.split('.') | |
| : []; | |
| const isYamlFormatSupported: boolean = (Number(major) > 0) || (!minor || Number(minor) >= 31); |
To Reproduce
Steps to reproduce the behavior:
- Run a docker-compose using
cubejs/cube:latestusing any database - Go to 'Data Model' > Tables
- Try to generate a YAML data model, it will be disabled
Expected behavior
You can generate YAML data models in a local Cube Playground
Minimally reproducible Cube Schema
N/A
Version:
v1.1.2
Additional context
Not sure if related, but the context also sends telemetry: false and yet I see calls going to segment.io. Maybe the context is just not parsed correctly at all by the React code?
