You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Zhichi57 (via GitHub)" <gi...@apache.org> on 2023/02/03 13:37:13 UTC

[GitHub] [superset] Zhichi57 commented on issue #22506: Import failed on duplicated key when importing existing chart that its dataset was changed

Zhichi57 commented on issue #22506:
URL: https://github.com/apache/superset/issues/22506#issuecomment-1415881060

   The problem is a query to the database that determines the existence of the chart.
   It contains the condition 
   `WHERE slices.datasource_id = %(datasource_id_1)s AND slices.uuid = %(uuid_1)s`
   Because of this, the existence of the diagram is determined incorrectly and is not overwritten.
   The query execute in a file
   https://github.com/apache/superset/blob/master/superset/models/helpers.py#L300
   
   


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