Send event to stream when draft change is published
When a change is uploaded as a draft, a `patchset-created` event is
sent to the event stream, but since drafts are private to the owner,
the event is not publicly visible. Furthermore, when the draft is
later published, no publicly visible event is sent.
The result of this is that external tools that rely on the event stream
to detect new changes will not receive events for any changes that are
first uploaded as draft.
This patch adds a new event, `draft-published`, which is sent to the
event stream when a draft change is published. The content of this
event is the same as `patchset-created`.
Bug: Issue 1437
Change-Id: I72f6dde99a82253ba796c1c13226a8b33f0e82bf
8 files changed