General comment: web-api and tests
Review Request #6431 — Created Oct. 11, 2014 and submitted
Reviewboard currently support 3 types of comments: Diff commment, File attachment comments, Screenshot comments.
This is a new type of comments: General comments.A general comment on a review request is used when a comment is not tied to specific lines of code or a special file attachment, and an issue is opened. Examples include suggestions for testing or pointing out errors in the change description.
The general comment model is built. (review request 6375)
This review request is for general comments web-api.
Add 106 tests for general comments in reviewboard/webapi/tests and all tests passed.
Description | From | Last Updated |
---|---|---|
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 5 E113 unexpected indentation |
reviewbot | |
Col: 9 E113 unexpected indentation |
reviewbot | |
Col: 17 E225 missing whitespace around operator |
reviewbot | |
Col: 9 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 47 E701 multiple statements on one line (colon) |
reviewbot | |
Col: 12 E701 multiple statements on one line (colon) |
reviewbot | |
Col: 27 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 29 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 30 E502 the backslash is redundant between brackets |
reviewbot | |
Col: 17 E131 continuation line unaligned for hanging indent |
reviewbot | |
Col: 19 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 21 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 34 E701 multiple statements on one line (colon) |
reviewbot | |
Col: 72 E701 multiple statements on one line (colon) |
reviewbot | |
Col: 20 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 22 E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 9 E124 closing bracket does not match visual indentation |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 5 E122 continuation line missing indentation or outdented |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 5 E124 closing bracket does not match visual indentation |
reviewbot | |
'six' imported but unused |
reviewbot | |
Col: 5 E303 too many blank lines (2) |
reviewbot | |
local variable 'review_request' is assigned to but never used |
reviewbot | |
Col: 77 W291 trailing whitespace |
reviewbot | |
'get_general_comment_list_url' imported but unused |
reviewbot | |
undefined name 'get_review_general_comment_list_url' |
reviewbot | |
Col: 62 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 62 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 37 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 44 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 50 E127 continuation line over-indented for visual indent |
reviewbot | |
These don't really make any sense. The only filtering in here should be the review__isnull one, and then ReviewGeneralCommentResource and … |
david | |
This should probably be pulled out into a separate review request. |
david | |
This resource shouldn't be necessary, because the only "object" that general comments will be attached to will be the review … |
david | |
Please revert this change. |
david | |
Why did you add this? |
david | |
Why did you add this? |
david | |
Typo: 'genral' |
david | |
This resource definitely does support items. |
david | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 56 W292 no newline at end of file |
reviewbot | |
Col: 46 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 50 E127 continuation line over-indented for visual indent |
reviewbot | |
undefined name 'CommentItemMixin' |
reviewbot | |
undefined name 'ReviewRequestChildItemMixin' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
Col: 56 E127 continuation line over-indented for visual indent |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
undefined name 'GeneralComment' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'User' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'User' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'PERMISSION_DENIED' |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
undefined name 'CommentListMixin' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
undefined name 'GeneralComment' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'general_comment_item_mimetype' |
reviewbot | |
undefined name 'get_review_general_comment_item_url' |
reviewbot | |
undefined name 'PERMISSION_DENIED' |
reviewbot | |
Col: 56 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 56 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
This is no longer needed. It's for some old, deprecated support that actually probably isn't used anymore. Now, all resource … |
chipx86 | |
You can remove this. Some changes will soon be pushed (currently on the markdown-redesign branch) that move all this documentation … |
chipx86 | |
This class will have this automatically, so no need to copy it here. |
chipx86 | |
The base class here shouldn't set this, as that's going to be up to the subclass. |
chipx86 | |
For the life of me, I can't figure out why this isn't just in BaseComment. All subclasses use it. Maybe … |
chipx86 | |
"... the comment text and the date/time the comment was made." |
chipx86 | |
This isn't true for all subclasses. We shouldn't doc this one, and should instead only doc in the subclasses. |
chipx86 | |
"file attachments, or general comments not tied to any code or file." |
chipx86 | |
This can be removed. |
chipx86 | |
Can you wrap this a bit nicer? It's awfully short, and you can fit more on a line. |
chipx86 | |
This can be removed. |
chipx86 | |
This should all be able to fit on one line. |
chipx86 | |
This can be removed. |
chipx86 | |
Indentation problems. Note that the summary must fit on one line. |
chipx86 | |
This can be removed. |
chipx86 | |
This can be removed. |
chipx86 | |
"general" |
chipx86 | |
This can be removed. |
chipx86 | |
Small, but for method summaries Review Board follows one of the conventions: """One line summary Long explanation, that can possible … |
ML mloyzer | |
Why this change? |
chipx86 | |
I know the naming is inconsistent, but this should be _post_new_general_comment. |
chipx86 | |
Small, but for method summaries Review Board follows one of the conventions: """One line summary Long explanation, that can possible … |
ML mloyzer | |
Just a note: This is going to change soon, due to the markdown-redesign branch. That will probably be merged this … |
chipx86 | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
'GeneralComment' imported but unused |
reviewbot | |
Col: 80 E501 line too long (80 > 79 characters) |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 17 E126 continuation line over-indented for hanging indent |
reviewbot |
- Commit:
-
121408e317a927831bef28aa72e82af966f198ada5905f640bb9a90d2e021ee77607f8d9284858fe
- Diff:
-
Revision 2 (+862 -12)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
-
-
-
-
-
-
-
-
-
- Commit:
-
a5905f640bb9a90d2e021ee77607f8d9284858fe3dad883d7dcda6b0a1470fa11104d0067976df17
- Diff:
-
Revision 3 (+860 -14)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
These don't really make any sense. The only filtering in here should be the
review__isnull
one, and then ReviewGeneralCommentResource and ReviewReplyGeneralCommentResource can filter to the specific review. -
-
This resource shouldn't be necessary, because the only "object" that general comments will be attached to will be the review (or reply). The docstrings you have in here should be moved over to BaseGeneralCommentResource.
The other comments have a separate resource that's used to attach to the given object in the tree. For example, the FileAttachmentCommentResource is accessible through the FileAttachmentResource.
-
-
-
-
-
- Commit:
-
3dad883d7dcda6b0a1470fa11104d0067976df17d7da3673eb87834df843d8e0c143f148141523fe
- Diff:
-
Revision 4 (+1059 -14)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description:
-
The general comment model is built. (review request 6375)
~ Now the general comment web-api is done. ~ Still writing test cases. + (Missing "test_review_reply_general_comment.py", will be put up after careful consideration.) + Testing required. - Testing Done:
-
~ No testing done yet.
~ No testing done yet.
- Stuck on updating the database. - - Todo: Testing
- - Next step: start UI design
- Commit:
-
d7da3673eb87834df843d8e0c143f148141523fe99310a89f72f6032474b7bc0b626c46716f77e69
- Diff:
-
Revision 5 (+820 -14)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description:
-
The general comment model is built. (review request 6375)
~ Still writing test cases. ~ (Missing "test_review_reply_general_comment.py", will be put up after careful consideration.) ~ Testing required. ~ Now web-api's done. ~ ~ Sorry about change in backend model included in the diff, please ingore that.
+ I did "rbt post -u --tracking-branch=upstream/comment_model", but i have no idea why it gives modifications in comment_model branch. - Testing Done:
-
~ No testing done yet.
~ Add 106 test and all test passed.
- Commit:
-
99310a89f72f6032474b7bc0b626c46716f77e69c54ed7c4457a043ef8b8a090f6207e0d7e10b8f8
- Diff:
-
Revision 6 (+1963 -42)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/reviews/models/__init__.py reviewboard/webapi/review_general_comment.py reviewboard/webapi/tests/urls.py reviewboard/reviews/models/review.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/reviews/tests.py reviewboard/reviews/models/review_request.py reviewboard/reviews/models/general_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/reviews/admin.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/reviews/templatetags/reviewtags.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/reviews/models/__init__.py reviewboard/webapi/review_general_comment.py reviewboard/webapi/tests/urls.py reviewboard/reviews/models/review.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/reviews/tests.py reviewboard/reviews/models/review_request.py reviewboard/reviews/models/general_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/reviews/admin.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py
-
-
-
-
- Summary:
-
[WIP]General comment: web-api and testsGeneral comment: web-api and tests
- Description:
-
The general comment model is built. (review request 6375)
Now web-api's done. ~ Sorry about change in backend model included in the diff, please ingore that.
~ I did "rbt post -u --tracking-branch=upstream/comment_model", but i have no idea why it gives modifications in comment_model branch. ~ And I'm able to exclude all files in comment model branch.
~ Ready for review. - Testing Done:
-
~ Add 106 test and all test passed.
~ Add 106 tests and all tests passed.
- Commit:
-
c54ed7c4457a043ef8b8a090f6207e0d7e10b8f88e0887cede8d11d33b0248e0bc56a7d932ea4b4b
- Diff:
-
Revision 7 (+1750 -18)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/review_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/review_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py
-
-
-
-
- Summary:
-
General comment: web-api and tests[WIP]General comment: web-api and tests
- Description:
-
The general comment model is built. (review request 6375)
Now web-api's done. And I'm able to exclude all files in comment model branch.
~ Ready for review. ~ TODO: split modifications on other comments
- Commit:
-
8e0887cede8d11d33b0248e0bc56a7d932ea4b4bad86570a9cde87cdc2496349249cb62047e2d369
- Diff:
-
Revision 8 (+1750 -18)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/review_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/review_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/review_file_attachment_comment.py reviewboard/webapi/tests/test_file_attachment_comment.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_reply_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/resources/base_file_attachment_comment.py reviewboard/webapi/base_file_attachment_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/review_reply.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/screenshot_comment.py reviewboard/webapi/resources/file_attachment_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/review.py
-
-
-
-
Hmmm, a bunch of files from reviewboard/webapi/resources/ just got added into reviewboard/webapi/. What happened there? Something seems wrong.
- Summary:
-
[WIP]General comment: web-api and testsGeneral comment: web-api and tests
- Description:
-
The general comment model is built. (review request 6375)
Now web-api's done. ~ And I'm able to exclude all files in comment model branch.
~ Other unrelated changes has moved to review request 6528.
- TODO: split modifications on other comments - Commit:
-
ad86570a9cde87cdc2496349249cb62047e2d36944e33d42579505fa32328cff2790d9a632952ce7
- Diff:
-
Revision 9 (+1122 -12)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/resources/base_general_comment.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
-
-
This is no longer needed. It's for some old, deprecated support that actually probably isn't used anymore.
Now, all resource data is serialized straight from the WebAPIResource subclass.
-
You can remove this. Some changes will soon be pushed (currently on the markdown-redesign branch) that move all this documentation to a new page.
-
-
-
For the life of me, I can't figure out why this isn't just in
BaseComment
. All subclasses use it. Maybe just introduce it there? -
-
This isn't true for all subclasses.
We shouldn't doc this one, and should instead only doc in the subclasses.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Just a note: This is going to change soon, due to the markdown-redesign branch. That will probably be merged this week. At that point, your tests will break, so look at the similar test classes when that happens to see how they changed.
- Commit:
-
44e33d42579505fa32328cff2790d9a632952ce7a6a2ec07ff1810be6ea9ac3253bada281d14136e
- Diff:
-
Revision 10 (+1054 -12)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/encoder.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
-
-
- Commit:
-
a6a2ec07ff1810be6ea9ac3253bada281d14136e556d98b7f7dac763c905375cb068f8b338e743c3
- Diff:
-
Revision 11 (+1054 -11)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
- Commit:
-
556d98b7f7dac763c905375cb068f8b338e743c3712b65f5efb8d49db3a65dd79db69edb0bcb60cc
- Diff:
-
Revision 12 (+1067 -11)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/resources/base_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/tests/urls.py reviewboard/webapi/resources/base_comment.py reviewboard/webapi/resources/__init__.py reviewboard/notifications/tests.py reviewboard/webapi/tests/test_review_general_comment.py reviewboard/webapi/resources/base_review_general_comment.py reviewboard/webapi/tests/test_review_reply_general_comment.py reviewboard/webapi/resources/review_reply.py reviewboard/webapi/resources/review.py reviewboard/notifications/webhooks.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/base.py reviewboard/webapi/resources/review_general_comment.py reviewboard/webapi/resources/review_reply_general_comment.py
-
-
-
- Description:
-
~ The general comment model is built. (review request 6375)
~ Now web-api's done. ~ Reviewboard currently support 3 types of comments: Diff commment, File attachment comments, Screenshot comments.
~ This is a new type of comments: General comments. + + A general comment on a review request is used when a comment is not tied to specific lines of code or a special file attachment, and an issue is opened. Examples include suggestions for testing or pointing out errors in the change description.
~ Other unrelated changes has moved to review request 6528.
~ The general comment model is built. (review request 6375)
+ This review request is for general comments web-api. - Testing Done:
-
~ Add 106 tests and all tests passed.
~ Add 106 tests for general comments in reviewboard/webapi/tests and all tests passed.