As a user I should receive a notification after a report generation is complete
Generating a report can take a while. User should be notified through the notification drawer when his/her scheduled report is complete and ready for download. The notification should have a link to download the report. The report is stored for a limited time window (1 day), if it's already deleted at the time user clicks the link, he should be informed it's no longer available and offered to generate it again, which redirect to the report template repo with the right report template preselected. That information can be fetched from the task input.
Everyone uses a report templates for render important stuff from foreman
instance. Right know, the templates can take long time to render it and
when you don't want to send a report by email, you have to have open
window with report rendering due to waiting for start downloading. What
happens when you accidentally close that window? You have to do another
So this excitedly frustrating experience motivated to make this PR.
This code makes an notification for reports when render is done.
Notification also contains two links - the download link to produced
report and link that redirects you to report generate page in case
you're miss the one-day window. Prefilled values of inputs are included!