Merge branch 'ucosp/dkus/dnd-inline-images' into release-3.0.x
Review Request #8176 — Created May 23, 2016 and submitted
This review request is just to sanity-check the merge of the new DnD features into release-3.0.x
Description | From | Last Updated |
---|---|---|
Should be in standard one-line summary, multi-line description format. |
chipx86 | |
Missing *args and **kwargs docs. |
chipx86 | |
Should have , optional. |
chipx86 | |
, optional |
chipx86 | |
Three of these are common between this and the dictionary above. We can build these before the file_obj condition, and … |
chipx86 | |
We're saving twice in the case of file_obj, since we're doing file.save(..., save=True) above, and save() here. We probably just … |
chipx86 | |
The mimetype setting can be one line. Probably the filename too. |
chipx86 | |
unicode. |
chipx86 | |
unicode |
chipx86 | |
Let's use :mimetype: for these. |
chipx86 | |
unicode. |
chipx86 | |
unicode |
chipx86 | |
, optional |
chipx86 | |
We can skip the first lookup by doing user__username=username in the second. |
chipx86 | |
Can we say "Drop to add an image" ? |
chipx86 | |
I think the type is File. |
chipx86 | |
File |
chipx86 | |
This is listed as callback in the defaults. |
chipx86 | |
Should use /** and Args |
chipx86 | |
Missing Args and Returns. |
chipx86 | |
Let's use :py:class: for the classes. |
chipx86 | |
Missing period. |
chipx86 | |
Same comments as above. |
chipx86 |
-
Some things I noticed in this pass. Most of it documentation-related, and a couple very small code cleanups.
-
-
-
-
-
Three of these are common between this and the dictionary above. We can build these before the
file_obj
condition, and update them in here. -
We're saving twice in the case of
file_obj
, since we're doingfile.save(..., save=True)
above, andsave()
here. We probably just want to removefile_attachment.save()
and useFileAttachment.objects.create()
in theelse
. -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/file_attachment.py reviewboard/staticbundles.py reviewboard/webapi/tests/test_user_file_attachment.py reviewboard/webapi/resources/base_file_attachment.py reviewboard/attachments/models.py reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/webapi/resources/base_review_request_file_attachment.py reviewboard/attachments/forms.py reviewboard/webapi/resources/user_file_attachment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/draft_file_attachment.py reviewboard/webapi/resources/diff_file_attachment.py reviewboard/attachments/mimetypes.py reviewboard/urls.py reviewboard/webapi/resources/user.py reviewboard/webapi/tests/urls.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/evolutions/file_attachment_ownership.py reviewboard/webapi/tests/mimetypes.py reviewboard/reviews/context.py reviewboard/attachments/tests.py reviewboard/attachments/views.py Ignored Files: reviewboard/static/rb/js/resources/models/tests/userFileAttachmentModelTests.js reviewboard/static/rb/css/ui/dnd-uploader.less reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js reviewboard/static/rb/js/ui/views/textEditorView.es6.js reviewboard/static/rb/js/views/dndUploaderView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewablePageViewTests.js reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/css/pages/reviews.less reviewboard/static/rb/js/ui/views/tests/textEditorViewTests.js reviewboard/static/rb/css/common.less reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/views/reviewRequestEditorView.js reviewboard/static/rb/js/pages/views/reviewablePageView.js Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/file_attachment.py reviewboard/staticbundles.py reviewboard/webapi/tests/test_user_file_attachment.py reviewboard/webapi/resources/base_file_attachment.py reviewboard/attachments/models.py reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/webapi/resources/base_review_request_file_attachment.py reviewboard/attachments/forms.py reviewboard/webapi/resources/user_file_attachment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/draft_file_attachment.py reviewboard/webapi/resources/diff_file_attachment.py reviewboard/attachments/mimetypes.py reviewboard/urls.py reviewboard/webapi/resources/user.py reviewboard/webapi/tests/urls.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/evolutions/file_attachment_ownership.py reviewboard/webapi/tests/mimetypes.py reviewboard/reviews/context.py reviewboard/attachments/tests.py reviewboard/attachments/views.py Ignored Files: reviewboard/static/rb/js/resources/models/tests/userFileAttachmentModelTests.js reviewboard/static/rb/css/ui/dnd-uploader.less reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js reviewboard/static/rb/js/ui/views/textEditorView.es6.js reviewboard/static/rb/js/views/dndUploaderView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewablePageViewTests.js reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/css/pages/reviews.less reviewboard/static/rb/js/ui/views/tests/textEditorViewTests.js reviewboard/static/rb/css/common.less reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/views/reviewRequestEditorView.js reviewboard/static/rb/js/pages/views/reviewablePageView.js
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/file_attachment.py reviewboard/staticbundles.py reviewboard/webapi/tests/test_user_file_attachment.py reviewboard/webapi/resources/base_file_attachment.py reviewboard/attachments/models.py reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/webapi/resources/base_review_request_file_attachment.py reviewboard/attachments/forms.py reviewboard/webapi/resources/user_file_attachment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/draft_file_attachment.py reviewboard/webapi/resources/diff_file_attachment.py reviewboard/attachments/mimetypes.py reviewboard/urls.py reviewboard/webapi/resources/user.py reviewboard/webapi/tests/urls.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/evolutions/file_attachment_ownership.py reviewboard/webapi/tests/mimetypes.py reviewboard/reviews/context.py reviewboard/attachments/tests.py reviewboard/attachments/views.py Ignored Files: reviewboard/static/rb/js/resources/models/tests/userFileAttachmentModelTests.js reviewboard/static/rb/css/ui/dnd-uploader.less reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js reviewboard/static/rb/js/ui/views/textEditorView.es6.js reviewboard/static/rb/js/views/dndUploaderView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewablePageViewTests.js reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/css/pages/reviews.less reviewboard/static/rb/js/ui/views/tests/textEditorViewTests.js reviewboard/static/rb/css/common.less reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/views/reviewRequestEditorView.js reviewboard/static/rb/js/pages/views/reviewablePageView.js Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/file_attachment.py reviewboard/staticbundles.py reviewboard/webapi/tests/test_user_file_attachment.py reviewboard/webapi/resources/base_file_attachment.py reviewboard/attachments/models.py reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/webapi/resources/base_review_request_file_attachment.py reviewboard/attachments/forms.py reviewboard/webapi/resources/user_file_attachment.py reviewboard/testing/testcase.py reviewboard/webapi/resources/draft_file_attachment.py reviewboard/webapi/resources/diff_file_attachment.py reviewboard/attachments/mimetypes.py reviewboard/urls.py reviewboard/webapi/resources/user.py reviewboard/webapi/tests/urls.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/evolutions/file_attachment_ownership.py reviewboard/webapi/tests/mimetypes.py reviewboard/reviews/context.py reviewboard/attachments/tests.py reviewboard/attachments/views.py Ignored Files: reviewboard/static/rb/js/resources/models/tests/userFileAttachmentModelTests.js reviewboard/static/rb/css/ui/dnd-uploader.less reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js reviewboard/static/rb/js/ui/views/textEditorView.es6.js reviewboard/static/rb/js/views/dndUploaderView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewablePageViewTests.js reviewboard/static/rb/js/views/reviewReplyEditorView.js reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/css/pages/reviews.less reviewboard/static/rb/js/ui/views/tests/textEditorViewTests.js reviewboard/static/rb/css/common.less reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/views/reviewRequestEditorView.js reviewboard/static/rb/js/pages/views/reviewablePageView.js