petkostas opened a new pull request, #8551:
URL: https://github.com/apache/incubator-devlake/pull/8551
### Summary
GitHub GraphQL returns zero time (`&time.Time{}`) for `nullable` fields,
this leads to GORM not properly handling this cases.
This PR:
- Introduces a new core helper util `NilIfZeroTime` in order to ensure that
`*time.Time` fields are assigned the `nil` value.
- Fixes the relevant cases in both collectors and extractors (as existing
entries in the DB should be properly handled as well).
### Does this close any open issues?
Closes #8538
### Screenshots
⚠️ Screenshots pending, as this PR has not been tested yet.
⚠️ This PR has not been tested yet, I am looking for cases to properly test
the fixes ⚠️
--
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]