ktmud opened a new issue #13264:
URL: https://github.com/apache/superset/issues/13264


   It seems timer picker will parse "last 1 year" as "next 1 year", while "last 
1 years" will work as expected.
   
   
https://user-images.githubusercontent.com/335541/108644697-fd4a7900-7464-11eb-8383-c970ab21c964.mp4
   
   This makes it impossible to set a time range as "Last 1 year : now":
   
   
https://user-images.githubusercontent.com/335541/108644687-f459a780-7464-11eb-9b44-663e6a7f1e58.mp4
   
   I did more testing  and it seems this bug affects other time granularities 
as well. For current date 2021-01-21,
   
   | Input         | Actual Output | Expected Output |
   |---------------|---------------|-----------------|
   | Last month    | 2021-01-21    | 2021-01-21      |
   | Last 1 month  | 2021-03-21    | 2021-01-21      |
   | Last 1 months | 2021-01-21    | 2021-01-21      |
   | Last 2 month  | 2021-04-21    | 2020-12-21      |
   | Last 2 months | 2020-12-21    | 2020-12-21      |
   
   #### How to reproduce the bug
   
   1. Go to time picker
   2. Set start date as "last 1 year"
   
   
   ### Environment
   
   Latest master: 4bc2daf4c1c4730bd4321f64b320eb5856e85757
   
   ### Checklist
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   N/A


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to