You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2020/05/05 21:50:43 UTC

[incubator-superset] branch etr2460--time-grain-options created (now e4a0e43)

This is an automated email from the ASF dual-hosted git repository.

erikrit pushed a change to branch etr2460--time-grain-options
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at e4a0e43  fix: re-add all time grain options to the new chart API

This branch includes the following new commits:

     new e4a0e43  fix: re-add all time grain options to the new chart API

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/01: fix: re-add all time grain options to the new chart API

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erikrit pushed a commit to branch etr2460--time-grain-options
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit e4a0e436ec643a4766243420ba2938cde0c31d14
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Tue May 5 14:50:19 2020 -0700

    fix: re-add all time grain options to the new chart API
---
 superset/charts/schemas.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/superset/charts/schemas.py b/superset/charts/schemas.py
index 8302f0c..dcdda49 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,