You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "betodealmeida (via GitHub)" <gi...@apache.org> on 2023/07/14 23:09:19 UTC

[GitHub] [superset] betodealmeida commented on a diff in pull request #24703: feat: migrate charts on import

betodealmeida commented on code in PR #24703:
URL: https://github.com/apache/superset/pull/24703#discussion_r1264233040


##########
superset/migrations/shared/migrate_viz/processors.py:
##########
@@ -51,6 +51,9 @@ def _pre_action(self) -> None:
             self.data["show_extra_controls"] = True
             self.data["stack"] = stacked_map.get(stacked)
 
+        if x_axis := self.data.get("granularity_sqla"):
+            self.data["x_axis"] = x_axis

Review Comment:
   I had to do this so that the chart would render after being imported.



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