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

Comment backend overhaul #5944

Merged
merged 12 commits into from
Jun 17, 2024
Merged

Comment backend overhaul #5944

merged 12 commits into from
Jun 17, 2024

Conversation

BurntimeX
Copy link
Member

This PR migrates the backend of the comment system to RPC controllers and commands and is intended to serve as a template for the future modernization of other backends.

@BurntimeX BurntimeX requested a review from dtdesign June 14, 2024 11:09
Copy link
Member

@dtdesign dtdesign left a comment

Choose a reason for hiding this comment

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

After finishing the review I question some of my remarks. In particular commands should be designed to be only called with clean data, otherwise following the “garbage in, garbage out” principle. They shouldn’t perform any validation whatsoever because this is the callee’s job.

Therefore please disregard my comments that suggest additional validations for commands and strip the existing validation unless you feel it is really important because it would otherwise cause serious issues.

Also, some of my comments are merely remarks so please feel free to disregard my comments at your discretion.

@BurntimeX BurntimeX merged commit e804b88 into master Jun 17, 2024
8 checks passed
@BurntimeX BurntimeX deleted the comment-backend-overhaul branch June 17, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants