sam-hieken commented on issue #30592:
URL: https://github.com/apache/superset/issues/30592#issuecomment-2494736923

   @rusackas So I've found that "2 minutes ago" works as desired like @yousoph 
said, but "Prior 2 minutes" will actually go 2 minutes into the future:
   
   <img width="573" alt="Screenshot 2024-11-22 at 3 16 27 PM" 
src="https://github.com/user-attachments/assets/1bcfdf43-512c-4ebd-81b5-61064eed4f80";>
   
   
   I'm not familiar with Superset's codebase, but I've narrowed down the 
problem to the `/api/v1/time_range` endpoint in the backend. For example, in 
the above image, the following request was produced to parse the plain language 
into a date:
   
   Endpoint: `/api/v1/time_range/?q='now : Prior 2 minutes'`
   Response: 
   ```
   {
       "result": {
           "since": "2024-11-22T15:16:19",
           "until": "2024-11-22T15:18:19",
           "timeRange": "now : Prior 2 minutes"
       }
   }
   ```


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

To unsubscribe, e-mail: [email protected]

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