Repository navigation
[BHO-47]: add audit log routes - #73
Open
devluharuwalla wants to merge 2 commits into
Open
devluharuwalla wants to merge 2 commits into
devluharuwalla wants to merge 2 commits into
Conversation
# Conflicts: # apps/backend/internal-serving-lambda/openapi.yml # apps/backend/internal-serving-lambda/src/routes.ts
naman0r
approved these changes
Nov 22, 2026
naman0r
left a comment
There was a problem hiding this comment.
The routes and query look right: rowKey is passed as a bound parameter, and ties on changedAt are broken by id. The branch had conflicts with main, so I pushed 781b729:
- Merged
main, keeping both sides' routes inroutes.tsand both sides' paths and schemas inopenapi.yml. - The two audit-log tests mocked
getCurrentUseras{ id: 'user-123' }. Since #100,CurrentUseris{ id: number, email, role }.
Non-blocking: the ticket asks for cursor paging that returns { items, nextCursor }. This uses limit/offset like /imports, while /entries (#79) uses a cursor, so the list routes now page two different ways. We should pick one in a follow-up.
cheangie
approved these changes
Nov 22, 2026
Rayna-Yu
reviewed
Nov 22, 2026
|
|
||
| // The tables with an audit trigger (see db/migrations), so the only values | ||
| // tableName can have | ||
| export const AUDITED_TABLES = [ |
Collaborator
There was a problem hiding this comment.
small change can you add daily discussions to the audited tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ℹ️ Issue
Closes #47
📝 Description
Adds audit log routes to the internal serving lambda.
GET /audit-log: newest first, with filters forchangedFrom,changedTo,tableName,importIdandrowKeyGET /audit-log/{id}: returns one entryopenapi.yml✔️ Verification
🏕️ (Optional) Future Work / Notes
/importsso both routes match.