From eee62807804b21ea4f68b05ef0f0155db368edb2 Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Tue, 5 May 2020 18:03:11 -0700 Subject: [PATCH] fix: re-add all time grain options to the new chart API (#9744) --- superset/charts/schemas.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset/charts/schemas.py b/superset/charts/schemas.py index 8302f0cfb..dcdda49a9 100644 --- a/superset/charts/schemas.py +++ b/superset/charts/schemas.py @@ -610,6 +610,10 @@ class ChartDataExtrasSchema(Schema): "P1M", "P0.25Y", "P1Y", + "1969-12-28T00:00:00Z/P1W", # Week starting Sunday + "1969-12-29T00:00:00Z/P1W", # Week starting Monday + "P1W/1970-01-03T00:00:00Z", # Week ending Saturday + "P1W/1970-01-04T00:00:00Z", # Week ending Sunday ), ), required=False,