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 2018/07/24 18:13:20 UTC

[GitHub] betodealmeida commented on a change in pull request #5471: [migration] Fix migration 3dda56f1c

betodealmeida commented on a change in pull request #5471: [migration] Fix migration 3dda56f1c
URL: https://github.com/apache/incubator-superset/pull/5471#discussion_r204859025
 
 

 ##########
 File path: superset/migrations/versions/3dda56f1c4c6_migrate_num_period_compare_and_period_.py
 ##########
 @@ -50,6 +51,12 @@ class Slice(Base):
     'hour': 'PT1H',
     'day': 'P1D',
     'week': 'P1W',
+    'week_ending_saturday': 'P1W',
+    'week_start_sunday': 'P1W',
+    'week_start_monday': 'P1W',
+    'week_starting_sunday': 'P1W',
+    'P1W/1970-01-03T00:00:00Z': 'P1W',
+    '1969-12-28T00:00:00Z/P1W': 'P1W',
 
 Review comment:
   This should be the opposite, since it maps the old format to the new one:
   
   ```python
   'week_ending_saturday': 'P1W/1970-01-03T00:00:00Z',
   'week_start_sunday': '1969-12-28T00:00:00Z/P1W',
   'week_start_monday': '1969-12-29T00:00:00Z/P1W',
   'week_starting_sunday': '1969-12-28T00:00:00Z/P1W',
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org