kevinw66 opened a new pull request, #12323:
URL: https://github.com/apache/gravitino/pull/12323
### What changes were proposed in this pull request?
- Change the audit timestamp fields in `AuditDTO` to use `datetime`.
- Add ISO-8601 serialization and deserialization for `createTime` and
`lastModifiedTime`.
- Add dedicated `AuditDTO` tests and update affected existing tests.
### Why are the changes needed?
`AuditDTO` currently keeps audit timestamps as strings because datetime
deserialization was not implemented. This change completes that support and
aligns `AuditDTO` with the public Python `Audit` API.
Fix: #12322
### Does this PR introduce _any_ user-facing change?
Yes. `Audit.create_time()` and `Audit.last_modified_time()` now return
`datetime` values instead of strings. Their JSON representation remains
ISO-8601.
### How was this patch tested?
The Python client unit tests, formatting checks, and static analysis checks
were run successfully.
--
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]