Project

General

Profile

Actions

Feature #30180

open

Add a cron function to the report templates

Added by Richard Stempfl almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

It would be very useful if you could generate reports at specific intervals. Currently you can only do this manually

Actions #1

Updated by Marek Hulán almost 4 years ago

Hello,

this RFE totally makes sense to me. However it's a bit more work. We should migrate the scheduling concept from foreman-tasks plugin, it's called recurring logic. At the same time, we'd need to polish it a bit, it's not very intuitive. And only then, we should add this feature, based on it.

As a workaround, you can simply use cron and trigger the rendering using API/hammer, I guess you already figured that out.

I'd also be interested in your use case a bit. What report and what intervals would you like to see? How would you treat permissions? E.g. could only the user who defined the interval modify/delete it? Or should it be permission based? Should the interval also include the "send me the result via email" checkbox? How would you specify inputs if the report request some user data? What if the report template changes and start requiring the new input, while already scheduled?

Thanks

Actions #2

Updated by Richard Stempfl almost 4 years ago

The most important thing would be the errata information and a report on jobs that have been run.
The reports should then always be sent by email. Permission based interval changes would be desirable but not very important in my opinion

Actions

Also available in: Atom PDF