Skip to content

feat(workspace): log who deletes a workspace or a channel - #1695

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/resource-deletion-log
Nov 10, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/resource-deletion-log

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Keep a lasting record of who deleted a workspace or a channel: the user, IP address, user agent, how it was requested, and when.
  • A workspace deletion is recorded when it is requested, then marked done when the purge job deletes the workspace, or canceled if it is undone or replaced.
  • A channel deletion is recorded when a user removes it. Automatic disconnects, like trial expiry or a workspace purge, are not recorded.
  • Records are kept in one new table with no foreign keys, so they stay after the workspace is gone.

Test plan

  • Unit tests and real-Postgres tests for schedule, cancel, resubmit, purge, channel delete, rollback and concurrent requests
  • Full test suite and type check pass
  • Checked on a dev server: delete and undo a workspace, delete a channel from the UI and the public API, run the purge job
  • Apply the new database migration before deploying

@github-actions github-actions Bot added the feature New feature or request label Nov 10, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review November 10, 2026 17:50
@viethung0o0
viethung0o0 merged commit b44a5f8 into main Nov 10, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants