[Bug][Config-UI] subtask calculateChangeLeadTime unable to handle NULL values #8217
Open
2 of 3 tasks
Labels
component/config-ui
This issue or PR relates to config-ui
severity/p1
This bug affects functionality or significantly affect ux
type/bug
This issue is a bug
Search before asking
What happened
The subtask for my devlake config-UI pipeline fails with the error :
level=error msg=" [pipeline service] [pipeline #5907] [task #47939] subtask calculateChangeLeadTime ended unexpectedly\n\tWraps: (2) error adding result to batch (500)\n\tWraps: (3) Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'first_commit_authored_date' at row 43 (500)\n\tWraps: (4) Error 1292 (22007): Incorrect datetime value: '0000-00-00' for column 'first_commit_authored_date' at row 43\n\tError types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *hintdetail.withDetail (4) *mysql.MySQLError"
What do you expect to happen
Successful pipeline run
How to reproduce
A new column named first_commit_authored_date is introduced in the latest devlake versions (I am using v1.0.2-beta5 ) and this column was not in V0.21 and after upgrade, I am getting the above mentioned error .
The table containing this column is : project_pr_metrics
NULL values in this column are not being correctly handled by devlake.
Anything else
No response
Version
v1.0.2-beta5
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: