-
Notifications
You must be signed in to change notification settings - Fork 0
feat: store lexicons in db #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
With settings optimized for JSON usage
… in ingest route Add type guards and event interfaces to distinguish between 'user' and 'record' events from Nexus. Only 'record' events are processed; 'user' events are ignored as per current requirements. Improves type safety and prevents unwanted processing of irrelevant events.
…t route - Expand the RecordEvent type with detailed record fields for better type safety - Add ackEvent and retryEvent helpers for consistent Nexus event responses - Refactor POST handler to use new helpers and always acknowledge events - Improve error handling to prevent retry loops
…nsid - Add db and lexicons schema imports - Expand RecordEvent type to type record with id/nsid - Upsert lexicon records into db on record events - Log ingested events with id, nsid, cid, and action
BinaryFiddler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question about postgres as I just ran into this in a separate project when upgrading from postgres 17 to 18
| - NEXUS_LOG_LEVEL=info | ||
|
|
||
| postgres: | ||
| image: postgres:17-alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we want to use 18 which is the current version and has some performance improvement?
In subsequent versions of postgres the mount directory is changed to: /var/lib/postgresql, https://github.com/docker-library/docs/blob/master/postgres/README.md#pgdata, potentially save some debugging down the line should people upgrade the db version.
Summary