-
-
Notifications
You must be signed in to change notification settings - Fork 61
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-410: Revisions of reviews are created when drafts are made, and they remain visible #427
base: master
Are you sure you want to change the base?
Conversation
At a quick look, these changes need to be made for the api as well? |
@@ -374,3 +375,32 @@ def test_hide_redirect(self): | |||
review["entity_type"], review["entity_id"])) | |||
redirect_url = urlparse(response.location) | |||
self.assertEqual(redirect_url.path, url_for('review.entity', id=review['id'])) | |||
|
|||
|
|||
def test_publish_draft_review(self): |
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.
Since we are deleting data, this test should be more comprehensive IMO. Probably fetch the actual revisions before publish, assert, then fetch again after publish to confirm the correct revisions were deleted.
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.
Sounds Good! I've improved the tests.
CB-410
This PR:
We need to run 2 queries in our database