Skip to content

Cube Playground cannot generate YAML data modelΒ #9246

@jessedobbelaere

Description

@jessedobbelaere

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:

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:

  1. Run a docker-compose using cubejs/cube:latest using any database
  2. Go to 'Data Model' > Tables
  3. Try to generate a YAML data model, it will be disabled

Expected behavior
You can generate YAML data models in a local Cube Playground

Screenshots
Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    client:playgroundIssues relating to the Developer Playground

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions