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/02/03 01:39:44 UTC

[GitHub] [superset] betodealmeida commented on a change in pull request #12905: fix(chart): allow `null` for optional query object props

betodealmeida commented on a change in pull request #12905:
URL: https://github.com/apache/superset/pull/12905#discussion_r569048561



##########
File path: superset/charts/schemas.py
##########
@@ -873,18 +873,20 @@ class Meta:  # pylint: disable=too-few-public-methods
     )
     applied_time_extras = fields.Dict(
         description="A mapping of temporal extras that have been applied to the query",
-        required=False,
+        allow_none=True,
         example={"__time_range": "1 year ago : now"},
     )
-    filters = fields.List(fields.Nested(ChartDataFilterSchema), required=False)
+    filters = (fields.List(fields.Nested(ChartDataFilterSchema), allow_none=True),)

Review comment:
       Is this supposed to be a tuple?




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

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