xavier-GitHub76 opened a new issue, #28690:
URL: https://github.com/apache/superset/issues/28690

   ### Bug description
   
   Hello,
   Option for file could be the same for superset export-dashboards / superset 
import-dashboards
   
   Actually : 
   - export-dashboards use : -f
   - import-dashboards use : -p
   
   In 
https://github.com/apache/superset/blob/master/superset/cli/importexport.py
   "-f" is used to define a file for : 
   export_dashboards : 
   
![image](https://github.com/apache/superset/assets/82046143/def35344-6232-424f-a787-c500a405e8d2)
   
   export_datasources : 
   
![image](https://github.com/apache/superset/assets/82046143/12f3e3fc-5652-4ceb-8429-24877e193524)
   
   (and 2 legacy : 
   - legacy_export_dashboards
   - legacy_export_datasources
   )
   
   "-p" is used to define a file for : 
   import_dashboards
   
![image](https://github.com/apache/superset/assets/82046143/010c67b2-2e19-4a64-8787-8d78a228d951)
   
   import_datasources
   
![image](https://github.com/apache/superset/assets/82046143/561bbad0-d4e9-43b5-ae79-31a39e1b622e)
   
   (and 4 legacy : 
   - legacy_export_dashboards
   - legacy_export_datasources
   - legacy_import_dashboards
   - legacy_import_datasources
   )
   
   "-p" should be used everywhere, like superset fab export-roles
   
   
![image](https://github.com/apache/superset/assets/82046143/81bed7f8-8aad-4db8-9657-b9a9a142c879)
   
   Best regards
   
   
   
   
   
   
   
   
   
   ### How to reproduce the bug
   
   superset export-dashboards --help
   
   Usage: superset export-dashboards [OPTIONS]
   
     Export dashboards to ZIP file
   
   Options:
     -f, --dashboard-file TEXT  Specify the file to export to
     --help                     Show this message and exit.
   
   
   superset import-dashboards --help
   Usage: superset import-dashboards [OPTIONS]
   
     Import dashboards from ZIP file
   
   Options:
     -p, --path TEXT      Path to a single ZIP file  [required]
     -u, --username TEXT  Specify the user name to assign dashboards to
                          [required]
     --help               Show this message and exit.
   
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to