New issue
Advanced search Search tips

Issue 9711 link

Starred by 4 users

Issue metadata

Status: Released
Closed: Sep 14

Sign in to add a comment

Add a ChangeDeletedListener to Gerrit. and hooks plugin

Reported by, Sep 12

Issue description

Gerrit (and by extension, the hooks core plugin) supports a ChangeAbandonedListener and ChangeRestoredListener.
These were added in

However, there's no ChangeDeletedListener. Note that the ability to Delete Changes was added in 2.14.

Gerrit should support a ChangeDeletedListener, analogous to ChangeAbandonedListener and ChangeRestoredListener.

Ideally, it should make available, to an onChangeDeleted implementation, all the details of the original change (I am specifically interested in knowing the topic of the deleted change). A ChangeInfo would be the natural way to do this, but I'm not sure whether that is possible, since at the time the listener fires, the change itself is already deleted.
Status: Accepted (was: New)
I've uploaded a WIP change to implement the event:

Status: Started (was: Accepted)
Labels: FixedIn-2.14.13
Status: Submitted (was: ChangeUnderReview)
Status: Released (was: Submitted)
Labels: FixedIn-2.15.4

Sign in to add a comment