Skip to content
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

feat: api logs user events #154

Merged
merged 17 commits into from
Jan 9, 2025
Merged

Conversation

talentedmrjones
Copy link
Collaborator

@talentedmrjones talentedmrjones commented Dec 4, 2024

Added

events table via migration
all inserts, updates, and deletes are recorded as events

Changed

Refactored entire model package to pass squirrel builders to query and queryRow, centralizing the builder.ToSQL method, which allows event sourcing to be centralized. Refactored majority of model methods to use the new signatures for query and queryRow which greatly simplified those functions and reduced repitition

closes #132

@talentedmrjones talentedmrjones force-pushed the 132-api-should-log-user-events branch from 2c77c53 to ed03c8b Compare December 17, 2024 20:32
@talentedmrjones talentedmrjones force-pushed the 132-api-should-log-user-events branch from 5593933 to 79f1fd8 Compare January 2, 2025 16:50
@talentedmrjones talentedmrjones force-pushed the 132-api-should-log-user-events branch from 79f1fd8 to d5eed4b Compare January 6, 2025 21:35
@talentedmrjones talentedmrjones marked this pull request as ready for review January 7, 2025 23:12
Copy link
Collaborator

@ATNoblis ATNoblis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@talentedmrjones talentedmrjones merged commit ac1923c into main Jan 9, 2025
14 checks passed
@talentedmrjones talentedmrjones deleted the 132-api-should-log-user-events branch January 9, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api should log user events
2 participants