You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "superset-user (via GitHub)" <gi...@apache.org> on 2023/09/05 12:05:50 UTC
[GitHub] [superset] superset-user opened a new issue, #25183: JSON export not capturing column infos
superset-user opened a new issue, #25183:
URL: https://github.com/apache/superset/issues/25183
After migration from Superset 1.4.2 to 2.1.0, I noticed that JSON backups of dashboards fails to capture column information which leads to failed charts and filters after opening a dashboard. I am using a deployment script to deploy and take backup of dashboards as JSON files
#### How to reproduce the bug
Run command for taking dashboard backup:
### Expected results
dashboard backup JSON file with following structure:
"datasources": [
{
"__SqlaTable__": {
"cache_timeout": null,
"columns": [
{
"__TableColumn__": {
"changed_by_fk": 26,
"changed_on": {
"__datetime__": "2023-08-04T11:32:59"
},
"column_name": "brand_name",
"created_by_fk": 26,
"created_on": {
"__datetime__": "2023-08-04T11:32:59"
},
"description": null,
"expression": null,
"extra": "{}",
"filterable": true, ...
### Actual results
However, getting this:
```
"datasources": [
{
"__SqlaTable__": {
"cache_timeout": null,
"database_id": 1,
"default_endpoint": null,
"description": null,
"extra": null,
"fetch_values_predicate": null,
"filter_select_enabled": false,
"main_dttm_col": null,
"offset": 0,
"params": "{\"remote_id\": 27571, \"database_name\": \"presto\", \"import_time\": 1693913439}",
"schema": "itam", ...
```
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: Edge
- superset version: `2.1.0`
- python version: `python --version`
- node.js version: `node -v`
- any feature flags active: VERSIONED_EXPORT: false
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of superset.
- [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
As we can see that in actual results the columns information is missing in JSON file, so after deployment the datasets column list is empty:

due to that charts are failing on dashboards as they failed to find columns in datasets (sync columns from source works but its impossible to go to every dataset and click sync columns from source button).
We recently upgraded to version 2.1.0 from 1.4.2. Everything was working fine before upgrade.
Can anyone help me and show how can we capture this columns (as shown in expected results) information in JSON files for 2.1.0 version of superset.
Thanks in advance!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] JSON export not capturing column infos [superset]
Posted by "superset-user (via GitHub)" <gi...@apache.org>.
superset-user commented on issue #25183:
URL: https://github.com/apache/superset/issues/25183#issuecomment-1833698695
Hi all. Can anyone help? TIA!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] JSON export not capturing column infos [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #25183: JSON export not capturing column infos
URL: https://github.com/apache/superset/issues/25183
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] JSON export not capturing column infos [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25183:
URL: https://github.com/apache/superset/issues/25183#issuecomment-2073608216
I'm not sure if this is still an issue in current versions of Superset (3.1/4.0). If it is, we can re-open this, or feel free to open a new issue with updated context and a reproducible case using example data. We're no longer supporting Superset 2.x or prior, and it's been a while since this thread saw any activity, so I'm closing this as stale.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org