asterix314 commented on issue #2674:
URL: 
https://github.com/apache/incubator-devlake/issues/2674#issuecomment-1219182319

   Hi @Startrekzky 
   
   I just had a quick check at the default and release-v0.12 branches. In both 
cases the relevant code snippet (in grafana/dashboards/Gitlab.json ) was:
   
   ```sql
   with _prs as(
     SELECT
       DATE_ADD(date(created_date), INTERVAL -DAY(date(created_date))+1 DAY) as 
time,
       avg(TIMESTAMPDIFF(Minute,created_date,merged_date)/1440) as time_to_merge
     FROM pull_requests
     WHERE
       $__timeFilter(created_date)
       and base_repo_id in ($repo_id)
       and created_date >= DATE_ADD(DATE_ADD($__timeFrom(), INTERVAL 
-DAY($__timeFrom())+1 DAY), INTERVAL +1 MONTH)
     group by 1
   )
   ```
   
   which is till grouping by the month of `create_date`. Did I look at the 
wrong file?


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

Reply via email to