nicolavolpini commented on issue #7193: URL: https://github.com/apache/incubator-devlake/issues/7193#issuecomment-2061142535
I might be encountering the same bug. If not, please feel free to delete this comment as I don't want to stray the discussion. I created a project with a single Github repo, using the GitHub connection for commits and PRs. A webhook is used for deployments. The `DORA Details - Lead Time for Changes` board shows the correct PR averages but the `2. PR details` table shows a ridiculously high `change_lead_time` (see screenshots). It appears to be associating all the PRs in the project to the same and currently only webhook commit (notice how the `deployment_id` is the same for all PRs). List of PRs in board: <img width="1332" alt="image" src="https://github.com/apache/incubator-devlake/assets/97942514/16545d1d-3213-4c01-bbfc-902261660822"> Correct averages:  This is also visible in the `project_pr_metric` table, where all PRs match the same deployment_commit_id (in this case the webhook id). I'm on 1.0.0b4. Here's the sanitized CURL for the webhook: ```curl https://<devlake-url>/api/rest/plugins/webhook/connections/1/deployments -X 'POST' -H 'Authorization: Bearer <bearer>' -d '{ "deploymentCommits":[ { "commit_sha":"<sha>", "repo_url":"https://github.com/<org>/<repo>" } ], "create_time":"2024-04-11T11:39:33+00:00", "start_time":"2024-04-11T11:39:33+00:00", "end_time":"2024-04-16T11:51:35+00:00", "result": "SUCCESS" }' ``` Thanks! -- 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]
