You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/11/23 12:11:30 UTC

[GitHub] [superset] Narendra678 opened a new issue #17526: Why export is YAML vs JSON in superset

Narendra678 opened a new issue #17526:
URL: https://github.com/apache/superset/issues/17526


   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   When i export report it is downloading as YAML and it is accepting only JSON to import.
   
   ### Expected results
   When download it should be as JSON
   ###what you expected to happen.
   When download it should be as JSON
   ### Actual results
   It is downloading as YAML
   what actually happens.
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: 
   - superset version: `superset version`: 1.3.1
   - python version: `python --version`
   - node.js version: `node -v`
   - any feature flags active:
   
   ### 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
   
   Add any other context about the problem here.
   


-- 
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


[GitHub] [superset] Narendra678 commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-979376658


   Thanks much Buddy.
   
   You mean i have to enable as below?
   
   FEATURE_FLAGS = {
       'CLIENT_CACHE': False,
       'ENABLE_EXPLORE_JSON_CSRF_PROTECTION': True,
       'PRESTO_EXPAND_DATA': False,
   }


-- 
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


[GitHub] [superset] betodealmeida commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
betodealmeida commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-979292702


   Thanks for clarifying!
   
   To export the dashboard as JSON you need to turn off the `VERSIONED_EXPORT` feature flag in `superset_config.py`. The default is off, so someone must have turned it on. Are you the admin for your Superset instance? If you're not you would have to talk to them.
   
   You can see the documentation for feature flags here: https://superset.apache.org/docs/installation/configuring-superset#feature-flags


-- 
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


[GitHub] [superset] junlincc commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-978159908


   @eschutho @betodealmeida 
   did we announce the changes before rolling it out? I might have missed it 


-- 
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


[GitHub] [superset] eschutho commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
eschutho commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-1009519931


   It looks like this question has been resolved and a new follow up question posted. I am going to close this issue. Feel free to reopen if you feel there is still an issue/ bug here. 


-- 
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


[GitHub] [superset] Narendra678 commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-977644983


   C
   
   > Hi @Narendra678 do you have the `VERSIONED_EXPORT` flag enabled? This should export all relevant assets as gzipped JSON files!
   > 
   > https://github.com/apache/superset/blob/master/RESOURCES/FEATURE_FLAGS.md#in-testing
   > 
   > Here's how you can enable feature flags:
   > 
   > https://superset.apache.org/docs/installation/configuring-superset#feature-flags
   
   But below article says it will not work. May i know how to enable JSON Export
   https://github.com/apache/superset/pull/7935


-- 
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


[GitHub] [superset] Narendra678 commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-977647898


   Or can we change Import option to YAML?
   As of now it is accepting only JSON. Please help here.


-- 
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


[GitHub] [superset] Narendra678 commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-984588155


   Thanks Betodealmedia.
   
   Can you please look on below issue
   https://github.com/apache/superset/issues/17558


-- 
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


[GitHub] [superset] Narendra678 commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-978773160


   I want to export dashboard to JSON format. See below screen please.
   
   ![image](https://user-images.githubusercontent.com/88739186/143371201-f0df1df0-aa60-4d8b-9d91-645ce470b93d.png)
   
   
   Currently it is exporting as YAML format with Zip file.


-- 
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


[GitHub] [superset] betodealmeida commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
betodealmeida commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-979379650


   To turn it off:
   
   ```python
   FEATURE_FLAGS = {
       "VERSIONED_EXPORT": False,
       # other keys would go here as well
   }
   ```


-- 
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


[GitHub] [superset] eschutho closed issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
eschutho closed issue #17526:
URL: https://github.com/apache/superset/issues/17526


   


-- 
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


[GitHub] [superset] srinify commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
srinify commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-976740759


   Hi @Narendra678 do you have the `VERSIONED_EXPORT` flag enabled? This should export all relevant assets as gzipped JSON files!
   
   https://github.com/apache/superset/blob/master/RESOURCES/FEATURE_FLAGS.md#in-testing
   
   Here's how you can enable feature flags:
   
   https://superset.apache.org/docs/installation/configuring-superset#feature-flags


-- 
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


[GitHub] [superset] junlincc commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-976772386


   @srinify I tried on our Pro, it's also YAML export file. Which is strange.... 


-- 
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


[GitHub] [superset] srinify commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
srinify commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-976825702


   Oh that's right, YAML is actually the direction the project wants to go in for export. Not sure about Import tho :/ 


-- 
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


[GitHub] [superset] junlincc commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-976645047


   @eschutho Hi Elizabeth, I remember we used to have it downloaded in JSON format, is this change recent? Is there any documentation that can explain why we go with YAML? Thanks! 


-- 
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


[GitHub] [superset] Narendra678 edited a comment on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 edited a comment on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-977647898


   Just now i checked, both Import and export  are in YAML format. 
   I need those to be in JSON and i got link to enable to JSON but it will not work below link says
   (https://github.com/apache/superset/pull/7935)
   
   Can i get code to enable JSON.
   
   And why in local(with docker) environment it was JSON and GCP is in YAML?
   


-- 
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


[GitHub] [superset] betodealmeida commented on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
betodealmeida commented on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-978176655


   To clarify a few things:
   
   1. Import/export used to be a mix of YAML and JSON. YAML for datases and JSON for dashboards.
   2. With the new feature flag `VERSIONED_EXPORT` the exports are ZIP files with YAML inside.
   3. With the new feature flag `VERSIONED_EXPORT` Superset can import ZIP, YAML, or JSON (all currnet and previous export formats).
   
   Now to my question: @Narendra678 you keep pointing at a ticket that has nothing to do with export, so it's still unclear to me what you want to do. You mention "export report", but it's not possible to export reports in Superset.
   
   Can you clarify what you want to export?


-- 
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


[GitHub] [superset] Narendra678 edited a comment on issue #17526: Why export is YAML vs JSON in superset

Posted by GitBox <gi...@apache.org>.
Narendra678 edited a comment on issue #17526:
URL: https://github.com/apache/superset/issues/17526#issuecomment-978773160


   I want to export dashboard to JSON format. See below screen please.
   
   ![image](https://user-images.githubusercontent.com/88739186/143371201-f0df1df0-aa60-4d8b-9d91-645ce470b93d.png)
   
   
   Currently it is exporting as YAML format with Zip file.
   
   And you mentioned "new feature flag VERSIONED_EXPORT" where i can do this change and what is exact code for this.


-- 
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