Skip to content

fix: fill out zero-value user properties in /audit #13604

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

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Jun 19, 2024

All except the organization IDs; those continue to be omitted. We can add the organization IDs as well if needed, but the complaint was specifically about last_seen_at. Not sure how valuable it is to have the organization IDs.

Originally I tried sqlc.embed but if the left join ends up with a null then we get an error (not sure if this happens in practice as it looks like users are soft deleted; I manually deleted a user to test the behavior). Maybe there is a clever way to get it working though? At least the test should catch if we make future additions in one spot but not the other.

@code-asher code-asher changed the title fix: fill out missing user properties to /audit fix: fill out missing user properties in /audit Jun 19, 2024
@code-asher code-asher force-pushed the asher/missing-user-timestamp branch 2 times, most recently from bf85f1d to 5055300 Compare June 19, 2024 01:38
@code-asher code-asher changed the title fix: fill out missing user properties in /audit fix: fill out zero-value user properties in /audit Jun 19, 2024
@code-asher code-asher force-pushed the asher/missing-user-timestamp branch from 5055300 to cb386a0 Compare June 19, 2024 01:49
@code-asher code-asher marked this pull request as ready for review June 19, 2024 02:13
@code-asher code-asher requested a review from Emyrk June 19, 2024 02:13
Comment on lines +6 to +7
-- sqlc.embed(users) would be nice but it does not seem to play well with
-- left joins.
Copy link
Member

Choose a reason for hiding this comment

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

All except the organization IDs.  We can add this as well if needed, but
the complaint was specifically about last_seen_at.
@code-asher code-asher force-pushed the asher/missing-user-timestamp branch from cb386a0 to 1eb189a Compare June 20, 2024 20:16
@code-asher code-asher merged commit 43e45f4 into main Jun 20, 2024
26 of 27 checks passed
@code-asher code-asher deleted the asher/missing-user-timestamp branch June 20, 2024 20:40
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants