feat: add server-side movement audit timestamps#634
Conversation
|
@claude review the pr |
|
Claude finished @rzueger's task in 1m 43s —— View job PR Review: feat/movement-audit-timestamps
Overall this is a clean, well-structured implementation. Moving audit tracking server-side is the right call. Here are my findings: Observations
Minor nits
What's good
|
|
@claude address review comments. decide by yourself what needs to be addressed and what doesnt. amend changes to the existing commit, no extra commit. |
|
Claude finished @rzueger's task in 4m 41s —— View job Claude finished @rzueger's task — Addressing Review CommentsAddressed:
Skipped (with reasoning):
|
Move createdBy tracking from frontend saga to a Cloud Function that sets createdBy, createdByName, createdAt, updatedBy, updatedByName, and updatedAt using server timestamps and user lookup. Display audit info to admins in MovementDetails.
43f4a37 to
2352e80
Compare
|
@claude I believe a user doesnt have a name in the auth context. I believe there is only uid (always) and sometimes email too. Check if I am right and adjust where needed, or explain why I am wrong if I am wrong. you can push another commit to the branch, no amend needed. |
|
Claude finished @rzueger's task in 1m 30s —— View job Investigation: Firebase auth context user properties
You are correct that However, no code changes are needed. The current implementation already handles this correctly:
The code is correct as-is. The |
Move createdBy tracking from frontend saga to a Cloud Function that sets createdBy, createdByName, createdAt, updatedBy, updatedByName, and updatedAt using server timestamps and user lookup. Display audit info to admins in MovementDetails.