Add old status/public states to the review request reopened signal.
Review Request #8724 — Created Feb. 8, 2017 and submitted
This fleshes out the review request reopened signals to include
information on what the status and public states were prior to
reopening. Consumers can use this to more intelligently determine
whether to take action on the reopen. For instance, it could decide not
to send a message to a service for a review request that was previously
unpublished and is now being reopened, or it could send a different
message when reopened from a discarded state vs. a submitted state.Unit tests were added to test reopen functionality and resulting states,
including the new signal changes.
Unit tests pass.
- Change Summary:
-
Removed the new parameters from the reopening signal.
- Summary:
-
Add old status/public states to the review request reopen signals.Add old status/public states to the review request reopened signal.
- Description:
-
~ This fleshes out the review request reopen signals to include
~ This fleshes out the review request reopened signals to include
information on what the status and public states were prior to reopening. Consumers can use this to more intelligently determine whether to take action on the reopen. For instance, it could decide not to send a message to a service for a review request that was previously unpublished and is now being reopened, or it could send a different ~ message when reopening from a discarded state vs. a submitted state. ~ message when reopened from a discarded state vs. a submitted state. Unit tests were added to test reopen functionality and resulting states,
including the new signal changes. - Commit:
-
5dd3881c3c0d2479d5a16fc3b049afe380a3d6e00fef63a640f428b09c58ec3d407744fdae11c096
-
Tool: Pyflakes Processed Files: reviewboard/reviews/tests/test_review_request.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/tests/test_review_request.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py