- Notifications
You must be signed in to change notification settings - Fork927
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,12 +3,21 @@ | ||
-- name: GetAuditLogsOffset :many | ||
SELECT | ||
audit_logs.*, | ||
-- sqlc.embed(users) would be nice but it does not seem to play well with | ||
-- left joins. | ||
Comment on lines +6 to +7 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yea, there is a few issues open on this: https://github.com/sqlc-dev/sqlc/issues?q=is%3Aissue+is%3Aopen+nullable+embed 😢 | ||
users.usernameAS user_username, | ||
users.nameAS user_name, | ||
users.emailAS user_email, | ||
users.created_atAS user_created_at, | ||
users.updated_atAS user_updated_at, | ||
users.last_seen_atAS user_last_seen_at, | ||
users.statusAS user_status, | ||
users.login_typeAS user_login_type, | ||
users.rbac_rolesAS user_roles, | ||
users.avatar_urlAS user_avatar_url, | ||
users.deletedAS user_deleted, | ||
users.theme_preferenceAS user_theme_preference, | ||
users.quiet_hours_scheduleAS user_quiet_hours_schedule, | ||
COUNT(audit_logs.*) OVER ()AS count | ||
FROM | ||
audit_logs | ||
Uh oh!
There was an error while loading.Please reload this page.