#13318 closed defect (fixed)
Batch modifications generate incorrect notifications
Reported by: | Owned by: | Peter Suter | |
---|---|---|---|
Priority: | normal | Component: | OnSiteNotificationsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
If I use the "batch modify" feature (on /query, available only to users with TICKET_BATCH_MODIFY), the resulting notification cannot be displayed properly by this plugin (error "report XXX does not exist" when accessing /notification).
Attachments (0)
Change History (5)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Oops sorry, I left in a few "printf-debug" messages in a hurry. Please edit them out.
comment:4 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch.
I see trac:changeset:15083#file2 uses a similar workaround for get_target_id
with batch modification notifications:
if isinstance(event.target, (list, tuple)): targetid = ','.join(map(get_target_id, event.target)) else: targetid = get_target_id(event.target)
But I committed a different fix now, where batch modifications are broken down into individual ticket notifications instead.
Does that work for you? I'm not sure if it's a better approach, but it seems a bit simpler and fit better with the current UI listing resources.
comment:5 Changed 7 years ago by
Thanks for your quick action!
I can see the merits of your approach, which is really neat and simple, but personally as a user I would find clearer to keep the notifications in batch format: it is simpler for me to process "These 50 tickets have been closed" than "Ticket 131 has been closed. Ticket 132 has been closed. Ticket 133 has been closed...."
That's just a personal opinion though, and I totally understand if you prefer your choice.
Here is a possible fix.