#11933 closed defect (fixed)
Previous owner is not notified when ticket is reassigned since 1.1.3
| Reported by: | Jun Omae | Owned by: | Peter Suter |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.4 |
| Component: | notification | Version: | 1.1.3 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: |
Fixed regression in notification of previous owner when ticket is reassigned. |
||
| API Changes: | |||
| Internal Changes: | |||
Description
New notification system breaks #2311 feature. See also comment:4:ticket:11533.
There is NotificationTestCase.test_previous_owner in trac/ticket/tests/notification.py for the feature. However, all tests in the file don't use NotificationSystem and are dysfunctional for trunk.
We should use NotificationSystem in the tests.
Attachments (2)
Change History (10)
comment:1 by , 11 years ago
by , 11 years ago
| Attachment: | T11533_notify_previous_owner_or_cc_2.diff added |
|---|
follow-up: 3 comment:2 by , 11 years ago
follow-up: 4 comment:3 by , 11 years ago
Replying to psuter:
In #11934 ([13703]) all tests except
test_previous_cc_listandtest_previous_ownerwere converted to useNotificationSystem. This patch also converts (and fixes) these two tests.
Looks good to me except one. We could use Chrome.cc_list() to parse Cc field in CarbonCopySubscriber.matches(). According to the method, ; character is able to use in Cc field.
Two questions:
- Should we notify previous reporter if the reporter field is changed?
- Why do not we pass ticket's creation time to
TicketChangeEventwhen initiating ticket created event?- event = TicketChangeEvent('created', ticket, None, ticket['reporter']) + event = TicketChangeEvent('created', ticket, ticket['time'], + ticket['reporter'])
follow-up: 6 comment:4 by , 11 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
Thanks for the review.
Replying to jomae:
We could use
Chrome.cc_list()to parse Cc field inCarbonCopySubscriber.matches(). According to the method,;character is able to use in Cc field.
Sounds good.
- Should we notify previous reporter if the reporter field is changed?
That would be a new feature, right? I think it could make sense but mainly for "symmetry". (Changing reporter seems rare and I assume the previous reporter is usually obsolete or invalid.)
- Why do not we pass ticket's creation time to
TicketChangeEventwhen initiating ticket created event?- event = TicketChangeEvent('created', ticket, None, ticket['reporter']) + event = TicketChangeEvent('created', ticket, ticket['time'], + ticket['reporter'])
No good reason, I just didn't need it so far. I agree we should pass it. Thanks again.
by , 11 years ago
| Attachment: | T11933_cc_list_and_created_time.diff added |
|---|
comment:5 by , 11 years ago
The attached patch should be applied on top of the previous one.
Attachment deletion and batch retargeting after milestone deletion or completion still pass None instead of deletion / retargeting time, as I don't see an obvious way to get at the appropriate value.
comment:6 by , 11 years ago
- Should we notify previous reporter if the reporter field is changed?
That would be a new feature, right? I think it could make sense but mainly for "symmetry". (Changing reporter seems rare and I assume the previous reporter is usually obsolete or invalid.)
Okay. I agree that's rare and previous reporter is usually invalid. It is not needed to notify to previous reporter.
comment:8 by , 11 years ago
| Release Notes: | modified (diff) |
|---|



Right, the patch in #11533 should fix this.
Yes, the tests still test the old
TicketNotifyclasses. Switching them to test the new code sounds good. (Though some of them seem to fail then.)