cube-js / cube-js/cube

A measure with a tool long name cannot be used

Open
#9,115 2 comments 0 reactions 1 assignee Claimed by @igorlukanin View on GitHub
question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
A measure with a name that is too long (reproduced on 33 characters) makes this field unusable with the following error message : `You requested hidden member: 'v_rpm_and_monitoring_timeline_v2__count_distinct_myfollowed_cli'. Please make it visible using `shown: true`. Please note primaryKey fields are `shown: false` by default: https://cube.dev/docs/schema/reference/joins#setting-a-primary-key.
`

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Data Model
2. Create a new model
3. Create a measure with a name like count_distinct_myfollowed_clients
4. Test the measure into the Playground

**Expected behavior**
Wished solution: it works no matter the length of the name of the measure
At worst : the error message is more clear.

**Screenshots**

**Minimally reproducible Cube Schema**

**Version:**
1.1.15

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.