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

Support storing a DQT user in audit events #993

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

gunndabad
Copy link
Collaborator

The SourceUserId property on EventBase was intended to be a foreign key to our users table. However, for events that have been migrated from DQT we won't have a TRS User ID nor do we want to create one for every user who has ever been on DQT.

This introduces a RaisedByUserInfo class which can represent a TRS user (by their 'User ID') or a DQT user (by their DQT user ID and name). The SourceUserId property on EventBase is renamed RaisedBy in line with this.

The serialized representation of RaisedByUserInfo is a bare GUID in the TRS user case and an object for the DQT user case.

@gunndabad gunndabad merged commit a7fe370 into main Dec 14, 2023
10 checks passed
@gunndabad gunndabad deleted the user-event-source-user branch December 14, 2023 15:50
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.

2 participants