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

refactor: use userLogin property in Comment interface #389

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jul 21, 2023

This change replaces the userId property on the Comment interface with userLogin. The benefit of this is that we eliminate KV-flavoured joins from DB logic, making it much more straightforward.

This is part of a series of PRs moving towards removing the User["id"] property from the codebase. Reviewers, please pay close attention to the migration script, which migrates the old comment interface to the new one.

CC @brunocorrea23, @mbhrznr

@iuioiua iuioiua requested a review from kt3k July 21, 2023 02:30
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua iuioiua merged commit edeada9 into main Jul 21, 2023
@iuioiua iuioiua deleted the remove-user-id-from-comment branch July 21, 2023 02:53
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