dosubot[bot] commented on issue #8516: URL: https://github.com/apache/incubator-devlake/issues/8516#issuecomment-3134956248
<!-- Answer --> This behavior is likely a bug. The codebase is designed so that sending `"timeAfter": null` in a PATCH request should set the field to `nil` in Go, which should be stored as `NULL` in the database and returned as `null` in the API response. However, if you see `0001-01-01T00:00:00Z`, it suggests the field is being set to the zero time value instead of `nil`. This can happen if the update logic doesn't properly overwrite the old value with `nil`, or if a non-nil, zero-value pointer is retained during the partial update process. There is no explicit logic in the PATCH API or service layer to coerce a `nil` value for `timeAfter` into the zero time value, so this is not the intended behavior and should be fixed in the codebase. For now, there are no documented workarounds or fixes for this issue in the repository. [See code references](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/server/services/blueprint.go) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d7f31bed-bc32-48ed-b5e2-6b4b1dbef64d?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8516) -- 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: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org