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

split out data model for code review into immutable objects #6342

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

jdhollen
Copy link
Member

@jdhollen jdhollen commented Apr 9, 2024

just a little Light Refactoring™

Review, Thread, and Comment are now immutable objects, modulo a few things that are less urgent to do this for--i've left TODOs for those fields.

This will make it much easier to build a coherent model where the user can move between different pages (viewing a single file, replying, viewing all files, ...) without worrying too much about maintaining state properly. Shoulda done this sooner.

Related issues: N/A

@jdhollen jdhollen marked this pull request as ready for review April 10, 2024 22:38
@jdhollen jdhollen requested a review from siggisim April 10, 2024 22:38
Copy link
Member

@siggisim siggisim left a comment

Choose a reason for hiding this comment

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

LGTM, Approval

@jdhollen jdhollen merged commit 2f2b1c6 into master Apr 11, 2024
18 checks passed
@jdhollen jdhollen deleted the jh/2024-04-04_single-file branch April 11, 2024 21:03
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.

None yet

2 participants