Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley eae4fa006f
Bug 1492462 - Remove retrigger/cancel APIs and pulse publisher (#4042)
Since as of #3980 (bug 1470622) the frontend no longer calls the
`/retrigger/` `/cancel/` or `/cancel_all/` Treeherder APIs.

Whilst looking at the pulse related fixtures, I spotted that the
`mock_message_broker` fixture was already unused.
2018-09-21 17:39:03 +01:00
George Hickman 703c1dde62 Abstract pulse message reading into a configurable function
Since testing Django management commands involves running them and
checking the log output this provides us with a way to test message
reading functionality while also reducing those scripts down to a simple
configuration.
2018-08-28 14:01:49 +01:00
George Hickman 6faff4fcc9 Allow creation of Pulse Exchanges and return bound Exchange objects 2018-08-28 14:01:49 +01:00
George Hickman 4825058830 Bug 1483231 - Remove the PULSE_EXCHANGE_NAMESPACE configuration option 2018-08-24 14:46:31 +01:00
George Hickman 27cb0bc4d7
Move Pulse Publishing to Pulse Service (#3919)
The PulsePublisher class was built for extensibility, providing lots of hooks
for customisation.  However we only had one subclass in use since its
introduction: TreeherderPublisher.  This reduces the concrete class into a
single function which publishes the given message.  In doing so all
configurability has been removed, since it was unused.
2018-08-24 14:09:14 +01:00
George Hickman d6a1efa4f7 Make construction of the Pulse connection lazy
Wrapping in Django's `lazy` makes the call to build_connection lazy but
means we need to call the function when we use it.
2018-08-24 13:29:42 +01:00