Summary: |
|
---|
Depends On & Blocks Relationships to Request Box.
Review Request #3881 — Created Feb. 18, 2013 and submitted
Feature - This feature adds the ability to link requests together by means of two fields; depends on, and blocks. These relationships are interconnected in the sense that, if Request A depends on Request B, then inversely Request B's blocks field will display a link back to Request A. - This request adds the ability to add, edit, and remove dependencies from both the backend admin panel as well as in the front-end. - Blocking relationships are built as a reverse of dependency, and thus are automatically generated upon a dependency change.
Backend - Select from Review Request Dependency box a new request to depend on - Relationship has been added. - Select from Review Request Draft Dependency box a new request to depend on - Relationship has been added. - Viewed these changes on the front end - Blocks relationship has been adjusted in response for the selected request. Frontend - Clicked to change dependencies, added a proper request after a comma and space - properly checked and added to draft. - Clicked to change dependencies, added an improper request after a comma and space - properly checked discarded with an accompanying warning. - Clicked to change dependencies, added a proper request after a space - properly checked and added to draft. - Clicked to change dependencies, added an improper request after a space - properly checked discarded with an accompanying warning. - Removed a dependency - Changes remain removed. - Published Changes - Changes remain added. - Enter in one incorrect request vs. multiple incorrect requests - Error adjusts to pluralized form. - Provide a change to an already published request - change log reports adjustment.
Description | From | Last Updated |
---|---|---|
Since djblets is part of Django and reviewboard is part of Reviewboard, I think there should exists a blank line … |
GR gregwym | |
I prefer "Do not change the things that are working, unless there is a good reason." This doesn't change anything … |
GR gregwym | |
Same here, these blank lines are probably been inserted intentionally. |
GR gregwym | |
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 49 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 67 W291 trailing whitespace |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 47 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 58 E127 continuation line over-indented for visual indent |
![]() |
|
Col: 67 W291 trailing whitespace |
![]() |
|
Col: 56 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 80 E501 line too long (80 > 79 characters) |
![]() |
|
Col: 56 E128 continuation line under-indented for visual indent |
![]() |
|
Looks like this is missing a space. |
|
|
Okay, so this is a good lesson in query optimization. Say we load 30 rows in the datagrid. What this … |
|
|
This looks... interesting :) What are you trying to do here? |
|
|
The other wrapping was more correct. If ReviewBot is yelling at you here, ignore it. Don't worry about fixing this … |
|
|
_() is for localizing human-readable strings. This is an identifier, which won't work so well if, say, a Russian translation … |
|
|
The indentation of all this is wrong. THey're off by one character. |
|
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Same comment about not using _(). |
|
|
Can you change these to use === instead of == ? (In JavaScript, == casts, and === doesn't.. the latter … |
|
|
Trailing commas will break many browsers. |
|
|
What's this all about? |
|
|
Note the other template tags. The {% should always be unindented, and the contents inside should be indented relative to … |
|
|
This looks wrong. |
|
|
These should explicitly say "review request". Same with the other field strings. |
|
|
This doesn't look right to me, and I feel very uncomfortable with changing old code like this that doesn't have … |
|
|
Some indentation weirdness. I would change this to start parameters on the second line, indented 4 spaces from the "obj". … |
|
|
Col: 80 E501 line too long (81 > 79 characters) |
![]() |
|
This shouldn't be here. |
|
|
"review request's" Also, trailing space should be removed. |
|
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 80 E501 line too long (81 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (86 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (86 > 79 characters) |
![]() |
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 41 E126 continuation line over-indented for hanging indent |
![]() |
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 41 E126 continuation line over-indented for hanging indent |
![]() |
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 41 E126 continuation line over-indented for hanging indent |
![]() |
|
Col: 39 E711 comparison to None should be 'if cond is None |
![]() |
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
I think this is worth some documentation. |
|
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
This isn't something the others are doing yet, but you should use newer-style parent construction: super(DependsOnColumn, self).__init__(self, *args, **kwargs) |
|
|
No blank line here. |
|
|
I'm seeing some stuff like this that I've commented on on previous reviews, which were marked as fixed. Can you … |
|
|
If you're going to break this up like this, I think I'd prefer to be consistent about putting the space … |
|
|
Don't change things that aren't directly related to your change. |
|
|
Same. |
|
|
Even if pep8 complains, modifying this in your change only makes it harder for us to track down issues later. … |
|
|
Nope, put it back :) |
|
|
"by" should be wrapped with trans tags (although the ordering when translated might differ...by might come after...)... I assume you … |
|
|
ReviewBot might have a point. Maybe: obj = ReviewRequest.objects.get( Q(local_id=value) & Q(local_site=local_site)) |
|
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo these changes. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Undo these changes. |
|
|
Undo thsi change. |
|
|
Undo this change. |
|
|
Undo these changes. |
|
|
Undo this change. |
|
|
Undo this change. |
|
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
Undo this change. |
|
|
related_name should never be localized. No _(..) |
|
|
Alignment issues. The parameters should be aligned to 'ReviewRequest'. The 'ReviewRequest' here should be able to be ReviewRequest (no quotes). |
|
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 40 E128 continuation line under-indented for visual indent |
![]() |
|
Same here. |
|
|
These should really be ===. Can you change all three? |
|
|
This looks broken. I don't see how it can compile. |
|
|
Where did this go? |
|
|
=== |
|
|
"Review request" |
|
|
=== |
|
|
"Review requests" |
|
|
These should be unindented, but with the contents indented relative to the nearest template tags (like: {% foo %}). Same … |
|
|
class="" should be removed. |
|
|
"for this review request." |
|
|
"for this review request." |
|
|
"for this review request." |
|
|
We have this split in two places, and both are slightly different. One is "[, ]+" and one is "[,\s*]". … |
|
|
Rather than this, can you add a new function to ReviewRequestManager (reviews/managers.py) called, let's say, for_id(), that would contain this … |
|
|
pk=value |
|
|
Col: 41 E128 continuation line under-indented for visual indent |
![]() |
|
No blank line here. |
|
|
"review request's" |
|
|
Col: 80 E501 line too long (85 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (82 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (86 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (86 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (85 > 79 characters) |
![]() |
|
I believe verbose_name needs to be wrapped in _() |
|
|
Same here |
|
|
Template code should be indented within the `{% ... %}` label? So this might become, {% spaceless %} {% for … |
GR gregwym | |
I'm not sure what this code is intending to do, but `,\s*` is quite different than `[,\s*]` in regex. `,\s*` … |
GR gregwym | |
Col: 80 E501 line too long (85 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (80 > 79 characters) |
![]() |
|
Col: 45 E128 continuation line under-indented for visual indent |
![]() |
|
Col: 32 E128 continuation line under-indented for visual indent |
![]() |
|
What happened to Christian's request? "Yeah, we should use the one we have in reviews/models.py." See the comments in my … |
|
|
Col: 80 E501 line too long (80 > 79 characters) |
![]() |
|
Col: 80 E501 line too long (80 > 79 characters) |
![]() |
Description: |
|
---|
-
Did you mean to post this as a new review request? You already have one open. Make sure your description is always explaining the feature in detail, and not the changes you've made within your branch.
Change Summary:
Edit for better description and deleted the other request as it was merely for testing purposes.
Description: |
|
---|
-
-
reviewboard/reviews/models.py (Diff revision 1) Since djblets is part of Django and reviewboard is part of Reviewboard, I think there should exists a blank line between their imports.
-
reviewboard/reviews/models.py (Diff revision 1) I prefer "Do not change the things that are working, unless there is a good reason." This doesn't change anything except the format, which has nothing to do with your patch's intension, but may introduce unnecessary merge conflict if someone has changed this part. And there are many of others in this file.
-
reviewboard/reviews/views.py (Diff revision 1) Same here, these blank lines are probably been inserted intentionally.
Change Summary:
First non-WIP Submission.
Summary: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Testing Done: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+197 -95) |

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
reviewboard/reviews/models.py (Diff revision 2) Col: 47 E127 continuation line over-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 2) Col: 47 E127 continuation line over-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 2) Col: 47 E127 continuation line over-indented for visual indent
-
-
reviewboard/webapi/resources.py (Diff revision 2) Col: 49 E128 continuation line under-indented for visual indent

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
reviewboard/reviews/models.py (Diff revision 3) Col: 47 E127 continuation line over-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 3) Col: 47 E127 continuation line over-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 3) Col: 47 E127 continuation line over-indented for visual indent
-
-
-
reviewboard/webapi/resources.py (Diff revision 3) Col: 58 E127 continuation line over-indented for visual indent
Description: |
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
reviewboard/webapi/resources.py (Diff revision 4) Col: 56 E128 continuation line under-indented for visual indent
-
-
reviewboard/webapi/resources.py (Diff revision 4) Col: 56 E128 continuation line under-indented for visual indent

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
reviewboard/reviews/models.py (Diff revision 5) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 5) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 5) Col: 40 E128 continuation line under-indented for visual indent
-
-
In general, this is shaping up nicely, but I have some comments. These fall primarily into two categories: 1) Fixes you need to make to your change. 2) Changes you need to revert. It's very important not to mix feature/bug fix changes and cleanup changes. Half this change are cleanup changes that have nothing to do with your work, and the cleanups aren't really things we want in some cases (ReviewBot isn't always 100% correct). I mention this below, but I'd ask that you undo every change in here that isn't related to your project. (Unfortunately, unless you did all that in their own commits, this might be a pain to do.)
-
-
reviewboard/reviews/datagrids.py (Diff revision 5) Okay, so this is a good lesson in query optimization. Say we load 30 rows in the datagrid. What this will do is perform this query 30 times, and bring in a lot of data with it. That's a huge increase in load. Instead, you want to augment the queryset. Look at the augment_queryset functions in that class for a bunch of different examples. Some of them are going to be more complex than others. What does the data look like that you're trying to show? Are these all summaries? If so, that's going to be very hard to read in a UI like the datagrid.
-
reviewboard/reviews/datagrids.py (Diff revision 5) This looks... interesting :) What are you trying to do here?
-
reviewboard/reviews/models.py (Diff revision 5) The other wrapping was more correct. If ReviewBot is yelling at you here, ignore it. Don't worry about fixing this and other fields unless you're working with them directly. It'll just make it harder for us to find the source of problems later when looking at who last touched the lines. Cleanup changes are fine, but don't merge them in with feature changes. I'd say, undo all that in this change. It'll also be easier for us, as we can focus on what actually changed in your code.
-
reviewboard/reviews/models.py (Diff revision 5) _() is for localizing human-readable strings. This is an identifier, which won't work so well if, say, a Russian translation changes it.
-
reviewboard/reviews/models.py (Diff revision 5) The indentation of all this is wrong. THey're off by one character.
-
-
reviewboard/static/rb/js/datastore.js (Diff revision 5) Can you change these to use === instead of == ? (In JavaScript, == casts, and === doesn't.. the latter is faster).
-
-
-
reviewboard/templates/reviews/review_request_box.html (Diff revision 5) Note the other template tags. The {% should always be unindented, and the contents inside should be indented relative to the other template tags.
-
-
reviewboard/webapi/resources.py (Diff revision 5) These should explicitly say "review request". Same with the other field strings.
-
reviewboard/webapi/resources.py (Diff revision 5) This doesn't look right to me, and I feel very uncomfortable with changing old code like this that doesn't have any bugs associated with it. What are you trying to do?
-
reviewboard/webapi/resources.py (Diff revision 5) Some indentation weirdness. I would change this to start parameters on the second line, indented 4 spaces from the "obj". There's also some danger here with how you're doing this lookup. An ID is *very* different depending on whether it's connected to a Local Site or not. You'll need to query differently depending on whether local_site is None.
-
-
reviewboard/webapi/resources.py (Diff revision 5) "review request's" Also, trailing space should be removed.
Change Summary:
Addressed auto-PEP8 incident by removing unneeded changes.

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
reviewboard/reviews/models.py (Diff revision 6) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 6) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 6) Col: 40 E128 continuation line under-indented for visual indent
-
Change Summary:
Addressed Bot and issue tracker.
Diff: |
Revision 7 (+386 -107)
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
-
-
-
reviewboard/webapi/resources.py (Diff revision 7) Col: 41 E128 continuation line under-indented for visual indent
-
reviewboard/webapi/resources.py (Diff revision 7) Col: 41 E126 continuation line over-indented for hanging indent
Diff: |
Revision 8 (+389 -107)
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
reviewboard/webapi/resources.py (Diff revision 8) Col: 41 E128 continuation line under-indented for visual indent
-
reviewboard/webapi/resources.py (Diff revision 8) Col: 41 E126 continuation line over-indented for hanging indent
Diff: |
Revision 9 (+389 -107)
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
reviewboard/webapi/resources.py (Diff revision 9) Col: 41 E128 continuation line under-indented for visual indent
-
reviewboard/webapi/resources.py (Diff revision 9) Col: 41 E126 continuation line over-indented for hanging indent
Diff: |
Revision 10 (+391 -107)
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
reviewboard/webapi/resources.py (Diff revision 10) Col: 39 E711 comparison to None should be 'if cond is None
-
reviewboard/webapi/resources.py (Diff revision 10) Col: 41 E128 continuation line under-indented for visual indent
Diff: |
Revision 11 (+391 -107)
|
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/__init__.py reviewboard/reviews/admin.py reviewboard/reviews/datagrids.py setup.py Ignored Files: docs/manual/webapi/2.0/resources/default-reviewer.txt docs/manual/webapi/2.0/resources/default-reviewer-list.txt docs/manual/webapi/2.0/resources/index.txt reviewboard/static/rb/js/datastore.js docs/releasenotes/reviewboard/index.txt reviewboard/cmdline/conf/reviewboard.wsgi.in reviewboard/templates/reviews/review_request_box.html reviewboard/static/rb/js/reviews.js docs/manual/docs.db docs/releasenotes/reviewboard/1.6.16.txt docs/releasenotes/reviewboard/1.7.6.txt
-
reviewboard/webapi/resources.py (Diff revision 11) Col: 41 E128 continuation line under-indented for visual indent
-
Hey Jon, it looks like there are fragments from some other changes in this review request. You didn't, I assume, make these changes to the Django version requirement and docs, for example. Can you please update this patch with just your changes?
-

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/reviews/datagrids.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/templates/reviews/review_request_box.html
-
reviewboard/webapi/resources.py (Diff revision 12) Col: 41 E128 continuation line under-indented for visual indent
-
Hey Jon, This looks fantastic. Just some style nits from me, but I think this is looking really solid. One more review pass after these changes, and you've got my ship-it! -Mike
-
reviewboard/reviews/datagrids.py (Diff revision 12) Is there supposed to be a space in between there? Or are we supposed to be trying to use as little space as possible here?
-
reviewboard/reviews/models.py (Diff revision 12) If you're going to break this up like this, I think I'd prefer to be consistent about putting the space at the end of the line (so move the space from the beginning of 123 to the end of 122 if possible).
-
reviewboard/templates/reviews/review_request_box.html (Diff revision 12) "by" should be wrapped with trans tags (although the ordering when translated might differ...by might come after...)... I assume you talked this move over with ChipX86 or David?
-
reviewboard/webapi/resources.py (Diff revision 12) ReviewBot might have a point. Maybe: obj = ReviewRequest.objects.get( Q(local_id=value) & Q(local_site=local_site))
-
So a huge chunk of this change is still stuff that should not have been changed. I think we went over this once, but please go through this change and remove every single modification that is not directly related to your change. Yes, pep8 may complain about some things, but in some cases we want to ignore pep8's recommendations, and either way, such changes are best left to cleanup changes. As it is, too much time is being spent figuring out what in this change is general cleanup, and what's part of your feature. Please make that a priority and then let me know immediately when it's done so I can give another re-review.
-
reviewboard/reviews/datagrids.py (Diff revision 12) This isn't something the others are doing yet, but you should use newer-style parent construction: super(DependsOnColumn, self).__init__(self, *args, **kwargs)
-
-
reviewboard/reviews/models.py (Diff revision 12) I'm seeing some stuff like this that I've commented on on previous reviews, which were marked as fixed. Can you go through my reviews and make sure they actually are?
-
reviewboard/reviews/models.py (Diff revision 12) Don't change things that aren't directly related to your change.
-
-
reviewboard/reviews/models.py (Diff revision 12) Even if pep8 complains, modifying this in your change only makes it harder for us to track down issues later. It's unrelated.
-
Change Summary:
Hopefully this new diff will have addressed the accidental PeP8 un-fixing.
Diff: |
Revision 13 (+187 -92) |
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/reviews/datagrids.py reviewboard/reviews/admin.py reviewboard/webapi/resources.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
reviewboard/webapi/resources.py (Diff revision 13) Col: 41 E128 continuation line under-indented for visual indent
-
Jon, There's still a number of things that do not belong in this patch. I've opened issues for the ones I found. Otherwise, this is a really solid looking patch. I think I'll be pretty ready to give it a ship-it once these things are removed. -Mike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Change Summary:
I could type a story about this whole ordeal, but in short, I found an externally saved copy of a version of the development that existed at a safe point before the whole branch collapse occurred, so I'm overhauled it to where it needed to be, and it should be outside of these accidentally included changes from the bad merge incident.
Diff: |
Revision 14 (+79 -11) |
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
reviewboard/reviews/models.py (Diff revision 14) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 14) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/reviews/models.py (Diff revision 14) Col: 40 E128 continuation line under-indented for visual indent
-
reviewboard/webapi/resources.py (Diff revision 14) Col: 41 E128 continuation line under-indented for visual indent
Change Summary:
Addressed the Bot's PEP8 request for three lines of my own code.
Diff: |
Revision 15 (+79 -11) |
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
-
-
reviewboard/reviews/models.py (Diff revision 14) Alignment issues. The parameters should be aligned to 'ReviewRequest'. The 'ReviewRequest' here should be able to be ReviewRequest (no quotes).
-
-
reviewboard/static/rb/js/datastore.js (Diff revision 14) These should really be ===. Can you change all three?
-
reviewboard/static/rb/js/reviews.js (Diff revision 14) This looks broken. I don't see how it can compile.
-
-
-
-
-
-
reviewboard/templates/reviews/review_request_box.html (Diff revision 14) These should be unindented, but with the contents indented relative to the nearest template tags (like: {% foo %}). Same applies to all other added template tags in your change.
-
reviewboard/templates/reviews/review_request_box.html (Diff revision 14) class="" should be removed.
-
-
-
-
reviewboard/webapi/resources.py (Diff revision 14) We have this split in two places, and both are slightly different. One is "[, ]+" and one is "[,\s*]". I think we should consolidate these. I'd recommend adding a COMMA_SEPARATED_RE regex to BaseReviewRequestDetails (reviews/models.py) that is a compiled regex (re.compile(...)) and then reference that both here and in BaseReviewRequestDetails.
-
reviewboard/webapi/resources.py (Diff revision 14) Rather than this, can you add a new function to ReviewRequestManager (reviews/managers.py) called, let's say, for_id(), that would contain this logic. That way it's in one place. Ideally, complex queries like this only exist in a single place in the codebase (we still have work to do to actually get there).
-
-
-
Change Summary:
Address a first round of Christian Hammond-suggested fixes.
Diff: |
Revision 16 (+83 -12) |
---|

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
-
-

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py reviewboard/reviews/models.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
-
So there's Christian's one outstanding comment about the modified regex - that needs to be addressed, and then these below. Once those are fixed, I'm happy to give a ship it.
-
-
-
Nice work! I can't wait for this patch be deployed on <http://reviews.reviewboard.org>! The "text editor" patch is most likely going to depend on my "markdown" patch, so I might list your patch as my "markdown" patch's dependent! lmao...
-
reviewboard/templates/reviews/review_request_box.html (Diff revision 17) Template code should be indented within the `{% ... %}` label? So this might become, {% spaceless %} {% for dependency in review_request_details.depends_on.all %} ... {% if not forloop.last %}, {% endif %} {% endfor %} {% endspaceless %}
-
reviewboard/webapi/resources.py (Diff revision 17) I'm not sure what this code is intending to do, but `,\s*` is quite different than `[,\s*]` in regex. `,\s*` will match any string that start with a comma and follow by arbitrary number of space. `[,\s*]` will match a character that is a comma, a space or a star(*). When using these two regex to perform split, the result will be totally different. For example, let `data = "abc, def"`. - `,\s*` will split the data into "abc" and "def" - `[,\s*]` will split the data into "abc", " ", " " and "def" If there is a star(*) within the string, it will become more messy. You can play around with regex on <http://regexpal.com/>

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/managers.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
reviewboard/reviews/managers.py (Diff revision 18) Col: 45 E128 continuation line under-indented for visual indent
-
reviewboard/webapi/resources.py (Diff revision 18) Col: 32 E128 continuation line under-indented for visual indent

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/reviews/managers.py reviewboard/reviews/models.py reviewboard/webapi/resources.py reviewboard/reviews/admin.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-
-
-
reviewboard/webapi/resources.py (Diff revision 19) What happened to Christian's request? "Yeah, we should use the one we have in reviews/models.py." See the comments in my last review.

-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources.py reviewboard/reviews/models.py reviewboard/reviews/admin.py reviewboard/reviews/managers.py Ignored Files: reviewboard/static/rb/js/reviews.js reviewboard/static/rb/js/datastore.js reviewboard/templates/reviews/review_request_box.html
-