cal.com
cal.com copied to clipboard
feat: internal audit logger
What does this PR do?
This change tries to resolve #1461 by adding audit logger on v1 and v2 api and on nextjs backend. These are the list of events handled on Teams and Organizations
Event-Types
- Modified
Event Setup
Title
Duration
Location
Assignment
Scheduling Type
- Created
- Delete
Bookings
- Modified
Reschedule
Edit Location
- Created
- Cancelled
- Fixes #1461 (GitHub issue number)
- Fixes CAL-1461 (Linear issue number - should be visible at the bottom of the GitHub issue description)
https://www.loom.com/share/db03dbc9794d489bafcdace4a1eee664
Mandatory Tasks (DO NOT REMOVE)
- [x] I have self-reviewed the code (A decent size PR without self-review might be rejected)
- [ ] I have added a Docs issue here if this PR makes changes that would require a documentation change
- [x] I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)
How should this be tested?
- Are there environment variables that should be set? No
- What are the minimal test data to have? Team/Organization and User Entity Records
- What is expected (happy path) to have (input and output)?
- Any other important info that could help to test that PR?
Checklist
- I haven't commented my code, particularly in hard-to-understand areas /claim #1461