deepto98 commented on issue #1773: URL: https://github.com/apache/incubator-devlake/issues/1773#issuecomment-1375323369
@klesh Oh okay, I got the project running, and am trying to understand the implementation of `ticket.Issue`. The field parent_issue_id is defined here, where it has type string: https://github.com/apache/incubator-devlake/blob/ad6d65ecaefbf2d7ca6b705c11dd7a4bf921140d/models/domainlayer/ticket/issue.go#L43 . I think the issue is persisted from here: https://github.com/apache/incubator-devlake/blob/ad6d65ecaefbf2d7ca6b705c11dd7a4bf921140d/plugins/webhook/api/issue.go#L156-L160 If we are to truncate empty strings to null, I found this type https://pkg.go.dev/database/sql#NullString, which can be used. However, it would probably affect the existing rows too. Can you help with how it can be implemented? Maybe the type has to be truncated to NULL, when the rows are fetched for the SELECT query, instead of changing the model itself? -- 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]
