Adding 'drop_open_issues' to StatusUpdate
Review Request #10075 — Created July 9, 2018 and submitted
Adding 'drop_open_issues' to StatusUpdate.
This feature is needed by the Review Bot feature "Adding ability to drop old issues on new review." https://reviews.reviewboard.org/r/10061/.
The method finds all open issues associated with the status update's review (if it exists) and drops them. Smart enough to update the review request's timestamp and issues counts.
Unit tests!
Also, called the method (via the Review Bot changes) with a review request with previous status updates with open issues. Noticed the timestamp and issue count were correct, and old issues were dropped.
Description | From | Last Updated |
---|---|---|
This should also be done on release-3.0.x instead of master. Can you rebase? |
david | |
E501 line too long (81 > 79 characters) |
reviewbot | |
We should import this from reviewboard.reviews.models.base_comment, to avoid potential circular import problems. |
david | |
Please add this line back |
david | |
There's an extra space after the """, and this should be written in the imperative rather than passive mood ("Drop … |
david | |
I know a lot of old code doesn't have it, but can you add a module docstring here? |
david | |
Can you specify that this is dropping open issues associated with a status update? |
david | |
Same here. |
david | |
Same here. |
david | |
Same here. |
david | |
Same here. |
david | |
Same here. |
david |
- Change Summary:
-
Adding unit tests
- Testing Done:
-
~ Call the method (via the Review Bot changes) with a review request with previous status updates with open issues. Noticed the timestamp and issue count were correct, and old issues were dropped.
~ Unit tests!
+ + Also, called the method (via the Review Bot changes) with a review request with previous status updates with open issues. Noticed the timestamp and issue count were correct, and old issues were dropped.
- Commit:
-
f842ea8e6475d07269280a0a320f5a070692513eb9e6631344294549686009178673b8a2c9799c5b
- Change Summary:
-
Fixed line length
- Commit:
-
b9e6631344294549686009178673b8a2c9799c5b94942339a26af4d122fb4fb9dc1b077bbd5f5759