-
Notifications
You must be signed in to change notification settings - Fork 5.1k
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Only retains first 2 data series when saving chart with custom expressions #15882
Comments
Hi @landm |
@landm Okay, so that's a strange one. It requires just one CE, but it has to be the first metric, then only two metrics are visible, when saving. If you add the CE to the end, then it doesn't cause this problem, which is why I had problems reproducing earlier. |
I repro'd it as well, and it's definitely a frontend bug. The api endpoint returns all 3 aggregations. |
This comment has been minimized.
This comment has been minimized.
This is already fixed by #16259 (since 0.40). Root Cause
However, during load, we do some normalization on the loaded data where metabase/src/metabase/models/interface.clj Lines 107 to 128 in bf2ba1f
#16259 changed the saved data to use the name as a reference instead of
Note that the reproduction will still fail because it hard-coded the query to not have a name while in fact if you create it via the UI it will now have a name. This also means that existing CEs will still fail, so the CE should be deleted and re-created. |
@pawit-metabase Great findings. I don't think we can close this until we create a fix for existing questions. |
…ries See #15882 (comment) for detailed explanation. Fixes #15882
…ries (#17855) See #15882 (comment) for detailed explanation. Fixes #15882
Describe the bug
When saving a question, only the first 2 data series are retained in the saved version.
Logs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected saved version of chart to match the pre-save version
Screenshots
Before saving:
After saving:
Information about your Metabase Installation:
{
"browser-info": {
"language": "en-US",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "https://adoptopenjdk.net/",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9",
"os.name": "Linux",
"os.version": "4.14.225-169.362.amzn2.x86_64",
"user.language": "en",
"user.timezone": "US/Pacific"
},
"metabase-info": {
"databases": [
"googleanalytics",
"snowflake"
],
"hosting-env": "elastic-beanstalk",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "11.10"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-04-27",
"tag": "v0.39.1",
"branch": "release-x.39.x",
"hash": "6beba48"
},
"settings": {
"report-timezone": "US/Pacific"
}
}
}
Severity
Annoying and blocking the creation of useful dashboards or saved questions
Additional context
My guess is the issue has something to do with custom expressions as creating a chart with 3 series where none are custom expressions does not demonstrate this behavior
Issue seems to be new to release-x.39.x, reverted to 0.38.4 and did not have this issue.
Not sure if multiple visualization types matters or not, as sometimes the behavior is reproduced with all line visualizations.
⬇️ Please click the 👍 reaction instead of leaving a
+1
orupdate?
commentThe text was updated successfully, but these errors were encountered: