-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more execution controll of reports #2703
Comments
I don't understand what you're asking for. Could you please state exactly what change you're proposing? |
Hmm, i will try. Basically i would want some kind of way to disable the possibility to start/run a specific report from either the GUI, through the API, or both. The crontab example is probably the easiest to explain. We have a report, we want it to run at midnight for example. We deploy a crontab job on the server to run at that time. What we want is to block is that a user can start the same report from the GUI or through the API. We can't just remove the permission to run reports as they need to be able to run other rpeorts. |
In code terms, think something like this, but with way better variable names
|
The API and GUI are intended to maintain parity with one another. We won't take any action to intentionally inhibit access via one or the other. Regarding access to individual reports, this would be a function of object-oriented permissions. This would fall under #554. |
Environment
Proposed Functionality
I want to extend the Report class and functionality to include options and controll to decide from what source i can execute each report. Right now there is 3 execution paths defined in the docs, through the UI, through the API and from command line. This feature should enable the user/developer of a report class to have controll of what execution paths is available.
It might only be needed that we can controll the execution through the UI and API. The CLI path probably have no need for this controll flow.
Use Case
If you have a report that does some really heavy lifting/processing to run, we do not want to have any user start a report run at any given time and have multiple reports running at the same time that would consume a lot of system resources. In this case we probably would like to deploy a crontab job on the server and run the report through the cli option at given intervals and only let the user view the latest report run. One solution would be to restrict what user could run or not run reports, but the problem is that it inlcudes or excludes the ability to run any report in the system.
Questions that needs answer
Database Changes
If done as properties on the report class instance itself then there is no need for DB changes.
The text was updated successfully, but these errors were encountered: