[PR #922] [MERGED] feat: initial document audit logs implementation #1252

Closed
opened 2026-02-26 19:32:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/922
Author: @dguyen
Created: 2/8/2024
Status: Merged
Merged: 2/12/2024
Merged by: @dguyen

Base: mainHead: feat/document-audit-logs


📝 Commits (6)

  • bb26bc1 feat: initial document audit logs implementation
  • b9911ad refactor: audit logs
  • 806c50b refactor: audit logs
  • 2722873 fix: update migration
  • 60e593e Merge branch 'main' into feat/document-audit-logs
  • b5374d0 fix: audit logs

📊 Changes

26 files changed (+1383 additions, -225 deletions)

View changed files

📝 apps/marketing/src/app/(marketing)/singleplayer/client.tsx (+1 -0)
📝 apps/web/src/app/(signing)/sign/[token]/page.tsx (+7 -1)
📝 packages/lib/constants/recipient-roles.ts (+6 -0)
📝 packages/lib/server-only/document-data/create-document-data.ts (+1 -1)
📝 packages/lib/server-only/document-meta/upsert-document-meta.ts (+63 -25)
📝 packages/lib/server-only/document/complete-document-with-token.ts (+24 -1)
📝 packages/lib/server-only/document/create-document.ts (+40 -13)
📝 packages/lib/server-only/document/resend-document.tsx (+44 -15)
📝 packages/lib/server-only/document/seal-document.ts (+31 -9)
📝 packages/lib/server-only/document/send-completed-email.ts (+41 -18)
📝 packages/lib/server-only/document/send-document.tsx (+62 -26)
📝 packages/lib/server-only/document/update-title.ts (+59 -17)
📝 packages/lib/server-only/document/viewed-document.ts (+35 -9)
📝 packages/lib/server-only/field/remove-signed-field-with-token.ts (+28 -6)
📝 packages/lib/server-only/field/set-fields-for-document.ts (+128 -42)
📝 packages/lib/server-only/field/sign-field-with-token.ts (+42 -0)
📝 packages/lib/server-only/recipient/set-recipients-for-document.ts (+131 -37)
packages/lib/types/document-audit-logs.ts (+350 -0)
📝 packages/lib/universal/extract-request-metadata.ts (+8 -2)
packages/lib/utils/document-audit-logs.ts (+205 -0)

...and 6 more files

📄 Description

Added the initial implementation of document audit logs.

There are currently no visual UI changes for this. This is purely to begin logging any logs related to document changes and events which will allow us to iterate and test things.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/922 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 2/8/2024 **Status:** ✅ Merged **Merged:** 2/12/2024 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `feat/document-audit-logs` --- ### 📝 Commits (6) - [`bb26bc1`](https://github.com/documenso/documenso/commit/bb26bc159ae4a49d81297cc229232c26cd1af889) feat: initial document audit logs implementation - [`b9911ad`](https://github.com/documenso/documenso/commit/b9911add0f6aecea133a4d67b8a69d43453d90a3) refactor: audit logs - [`806c50b`](https://github.com/documenso/documenso/commit/806c50b7016ddfb5f6d060f6b42c8f21c34df2e0) refactor: audit logs - [`2722873`](https://github.com/documenso/documenso/commit/272287397f44fb4f2faec5fc564578a6afb93ab0) fix: update migration - [`60e593e`](https://github.com/documenso/documenso/commit/60e593eab46eae5b7a5b9b6dc0369e8ea7060eec) Merge branch 'main' into feat/document-audit-logs - [`b5374d0`](https://github.com/documenso/documenso/commit/b5374d09dc4ba71b6df6c7592766b239d3a6d69b) fix: audit logs ### 📊 Changes **26 files changed** (+1383 additions, -225 deletions) <details> <summary>View changed files</summary> 📝 `apps/marketing/src/app/(marketing)/singleplayer/client.tsx` (+1 -0) 📝 `apps/web/src/app/(signing)/sign/[token]/page.tsx` (+7 -1) 📝 `packages/lib/constants/recipient-roles.ts` (+6 -0) 📝 `packages/lib/server-only/document-data/create-document-data.ts` (+1 -1) 📝 `packages/lib/server-only/document-meta/upsert-document-meta.ts` (+63 -25) 📝 `packages/lib/server-only/document/complete-document-with-token.ts` (+24 -1) 📝 `packages/lib/server-only/document/create-document.ts` (+40 -13) 📝 `packages/lib/server-only/document/resend-document.tsx` (+44 -15) 📝 `packages/lib/server-only/document/seal-document.ts` (+31 -9) 📝 `packages/lib/server-only/document/send-completed-email.ts` (+41 -18) 📝 `packages/lib/server-only/document/send-document.tsx` (+62 -26) 📝 `packages/lib/server-only/document/update-title.ts` (+59 -17) 📝 `packages/lib/server-only/document/viewed-document.ts` (+35 -9) 📝 `packages/lib/server-only/field/remove-signed-field-with-token.ts` (+28 -6) 📝 `packages/lib/server-only/field/set-fields-for-document.ts` (+128 -42) 📝 `packages/lib/server-only/field/sign-field-with-token.ts` (+42 -0) 📝 `packages/lib/server-only/recipient/set-recipients-for-document.ts` (+131 -37) ➕ `packages/lib/types/document-audit-logs.ts` (+350 -0) 📝 `packages/lib/universal/extract-request-metadata.ts` (+8 -2) ➕ `packages/lib/utils/document-audit-logs.ts` (+205 -0) _...and 6 more files_ </details> ### 📄 Description Added the initial implementation of document audit logs. There are currently no visual UI changes for this. This is purely to begin logging any logs related to document changes and events which will allow us to iterate and test things. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1252
No description provided.