-
-
reviewboard/accounts/managers.py (Diff revision 1) Col: 21 E126 continuation line over-indented for hanging indent
-
-
-
Provide automatic unarchiving when a user publishes review requests, reviews or review replies
Review Request #7088 — Created March 19, 2015 and submitted
Added automatic unarchiving.
A review request becomes unarchived when a user publishes a new review request, a review or a review reply.
Manual testing:
- archived review requests become unarchived when there is new activity
- visible and muted review requests remain muted when there is new activity
- "new activity" = when a user (not necessarily the "archiver") publishes a draft, review or reply for the review request in question
Description | From | Last Updated |
---|---|---|
Col: 21 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 80 E501 line too long (82 > 79 characters) |
reviewbot | |
Col: 7 E111 indentation is not a multiple of four |
reviewbot | |
djblets imports go in the same import group as django imports (as they are both considered 3rd party to this … |
brennie | |
(from David) Can you add docstrings for the class and method? |
CR cristocrat | |
(from David) Please add visibility=self.model.ARCHIVED to the filter call (we don't want to update muted review requests). |
CR cristocrat | |
Col: 21 E126 continuation line over-indented for hanging indent |
reviewbot | |
(from David) Please add a blank line after the docstring. |
CR cristocrat | |
"inherits from" |
brennie | |
(from David) review_published and reply_published pass a Review instance as their argument rather than a ReviewRequest. You'll need a separate … |
CR cristocrat | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
(from David) I think djblets.util.http.get_url_params_except will do what you want. |
CR cristocrat | |
Col: 7 E111 indentation is not a multiple of four |
reviewbot | |
(from David) Please don't change the signatures of these, and instead have a separate handler. |
CR cristocrat | |
Col: 21 E126 continuation line over-indented for hanging indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
This must be in the following form: """One-line summary. Multi-line description. """ |
chipx86 | |
This is hard to read. Best to split it off into two statements: queryset = self.filter(...) queryset.update(...) |
chipx86 | |
Update these to pass review.review_request_id and reply.review_request_id to avoid a possible unnecessary fetch of the review request from the database. … |
chipx86 |
Summary: |
|
||||
---|---|---|---|---|---|
Depends On: |
|
-
Tool: PEP8 Style Checker Processed Files: reviewboard/accounts/managers.py reviewboard/datagrids/views.py reviewboard/reviews/signals.py reviewboard/accounts/models.py reviewboard/reviews/models/review.py Tool: Pyflakes Processed Files: reviewboard/accounts/managers.py reviewboard/datagrids/views.py reviewboard/reviews/signals.py reviewboard/accounts/models.py reviewboard/reviews/models/review.py
-
reviewboard/accounts/managers.py (Diff revision 2) Col: 21 E126 continuation line over-indented for hanging indent
-
-
-
-
reviewboard/accounts/managers.py (Diff revision 2) (from David) Can you add docstrings for the class and method?
-
reviewboard/accounts/managers.py (Diff revision 2) (from David) Please add visibility=self.model.ARCHIVED to the filter call (we don't want to update muted review requests).
-
-
reviewboard/accounts/models.py (Diff revision 2) (from David) Please add a blank line after the docstring.
-
reviewboard/accounts/models.py (Diff revision 2) (from David) review_published and reply_published pass a Review instance as their argument rather than a ReviewRequest. You'll need a separate handler for those signals which accesses review.review_request
-
reviewboard/datagrids/views.py (Diff revision 2) (from David) I think djblets.util.http.get_url_params_except will do what you want.
-
reviewboard/reviews/signals.py (Diff revision 2) (from David) Please don't change the signatures of these, and instead have a separate handler.
-
-
reviewboard/accounts/managers.py (Diff revision 2) djblets
imports go in the same import group asdjango
imports (as they are both considered 3rd party to this project). -
-
Tool: PEP8 Style Checker Processed Files: reviewboard/accounts/managers.py reviewboard/accounts/models.py Tool: Pyflakes Processed Files: reviewboard/accounts/managers.py reviewboard/accounts/models.py
-
reviewboard/accounts/managers.py (Diff revision 3) Col: 21 E126 continuation line over-indented for hanging indent
-
-
-
Summary: |
|
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
|||||||||||||||
Depends On: |
|
|||||||||||||||
Groups: |
|
|||||||||||||||
Diff: |
Revision 4 (+40 -5) |
-
Tool: Pyflakes Processed Files: reviewboard/accounts/managers.py reviewboard/accounts/models.py Tool: PEP8 Style Checker Processed Files: reviewboard/accounts/managers.py reviewboard/accounts/models.py
-
-
reviewboard/accounts/managers.py (Diff revision 4) This must be in the following form:
"""One-line summary. Multi-line description. """
-
reviewboard/accounts/managers.py (Diff revision 4) This is hard to read. Best to split it off into two statements:
queryset = self.filter(...) queryset.update(...)
-
reviewboard/accounts/models.py (Diff revision 4) Update these to pass
review.review_request_id
andreply.review_request_id
to avoid a possible unnecessary fetch of the review request from the database. It will Just Work with theunarchive_all()
, since the query being performed accepts either an object or an ID.