Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cube Playground cannot generate YAML data model #9246

Open
jessedobbelaere opened this issue Feb 19, 2025 · 0 comments
Open

Cube Playground cannot generate YAML data model #9246

jessedobbelaere opened this issue Feb 19, 2025 · 0 comments

Comments

@jessedobbelaere
Copy link

jessedobbelaere commented Feb 19, 2025

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?

@jessedobbelaere jessedobbelaere changed the title Cube Playground cannot generate YAML data model on latest Cube Playground cannot generate YAML data model Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant