This adds new POST endpoint to allow admins to trigger rebuild of images with packages form advisory manually. This new endpoint just sends message to message bus which is handled by Freshmaker backend. This will create fake internal event representing the errata advisory and will build it as it would do when receiving this event from message bus.
This also adds MESSAGING_SENDER. I'm not 100% happy with that, but we are in strange situation when it comes to messaging. Python fedmsg module cannot send messages to UMB without consumer, but we need to send the message to UMB from frontend, which is flask app without consumer. Therefore the MESSAGING_SENDER is introduced to set that sending should be done using rhmsg messaging backend, which allows sending messages from frontend, but receiving on backend side should be done using fedmsg.
This adds new POST endpoint to allow admins to trigger rebuild of images with packages form advisory manually. This new endpoint just sends message to message bus which is handled by Freshmaker backend. This will create fake internal event representing the errata advisory and will build it as it would do when receiving this event from message bus.
This also adds
MESSAGING_SENDER. I'm not 100% happy with that, but we are in strange situation when it comes to messaging. Pythonfedmsgmodule cannot send messages to UMB without consumer, but we need to send the message to UMB from frontend, which is flask app without consumer. Therefore theMESSAGING_SENDERis introduced to set that sending should be done usingrhmsgmessaging backend, which allows sending messages from frontend, but receiving on backend side should be done usingfedmsg.