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
CB-321: No empty comments #221
CB-321: No empty comments #221
Conversation
f82fe12
to
66bf771
Compare
66bf771
to
9249b8d
Compare
4b74a73
to
5863be1
Compare
@paramsingh Please review this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've fixed the stuff we talked about. LGTM.
@@ -0,0 +1,8 @@ | |||
BEGIN; | |||
|
|||
ALTER TABLE "comment_revision" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, we'd have to think about what we want to do with empty comments already in the db before we add a constraint, but I checked and there aren't any empty comments (or any comments whatsoever) in the db so we should be okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the db version to 13 in db/__init__.py
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, did it myself.
Changed SQL and Comment Form to reject empty comments.