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/09/27 17:18:20 UTC

[GitHub] [superset] kevinhodes opened a new issue #16858: Id issues with import/export

kevinhodes opened a new issue #16858:
URL: https://github.com/apache/superset/issues/16858


   In docker container 1:  I created several dashboards pointing to a postgresql database. (Export 1)
   In docker container 2:  I imported the dashboards from "Export 1" and made a few changes but it was left mostly as it was.  Enabled VERSIONED_EXPORT and exported the whole thing again (Export 2).
   In docker container 3: Imported from "Export 2" and faced several issues.
   
   ### Expected results
   
   Import without any issues.
   
   ### Actual results
   
   - Issue 1 (Can´t import).
   
   `Traceback (most recent call last):
     File "/app/superset/dashboards/commands/importers/dispatcher.py", line 58, in run
       command.run()
     File "/app/superset/commands/importers/v1/__init__.py", line 71, in run
       raise self.import_error() from ex
   superset.dashboards.commands.exceptions.DashboardImportError: Import dashboard failed for an unknown reason
   2021-09-11 17:46:25,228:ERROR:superset.dashboards.commands.importers.dispatcher:Error running import command
   Traceback (most recent call last):
     File "/app/superset/commands/importers/v1/__init__.py", line 67, in run
       self._import(db.session, self._configs, self.overwrite)
     File "/app/superset/dashboards/commands/importers/v1/__init__.py", line 128, in _import
       config = update_id_refs(config, chart_ids, dataset_info)
     File "/app/superset/dashboards/commands/importers/v1/utils.py", line 106, in update_id_refs
       for old_id, value in default_filters.items()
     File "/app/superset/dashboards/commands/importers/v1/utils.py", line 106, in <dictcomp>
       for old_id, value in default_filters.items()
   KeyError: 138`
   This error was because Key 138 changed to 163
   `"default_filters": "{\"163\": {\"cct\": [\"09PES0800E\"], \"turno\": [\"Matutino\"]}}",`
   I cleared the default filters in container 2 and re-exported and the export went through.
   
   - Issue 2 (Empty dashboards)
   
   All the slices were there but with a message that the slice was making reference to a chart that it did not exist. (Sorry that the wording of the message was incorrect).  
   
   - Issue 3 (List of charts was empty)
   
   I tried to delete and recreate and recreate the slice but the list of charts was empty.  To overcome the issue I created a new dashboard but the list still remained empty.  To overcome the issue I got into a chart explorer and saved it to the new dashboard.
   
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   #### How to reproduce the bug
   
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: chrome (Version 93.0.4577.82 (Official Build) (64-bit))
   - superset version: latest (created: 2021-08-20T19:19:15.311631677Z)
   - python version: 3.7.9
   - node.js version: 
   - any feature flags active:
       "DASHBOARD_NATIVE_FILTERS":False,
       "ENABLE_TEMPLATE_PROCESSING":True,
       "ROW_LEVEL_SECURITY":True,
       "VERSIONED_EXPORT": True
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] 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.
   - [x] 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] junlincc commented on issue #16858: Id issues with import/export

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


   thank you so much for the detailed report, this is very helpful! @kevinhodes 
   @betodealmeida can you take a look along with #16848 ? 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] junlincc commented on issue #16858: Id issues with import/export

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


   thank you so much for the detailed report, this is very helpful! @kevinhodes 
   @betodealmeida can you take a look along with #16848 ? 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