-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Is your feature request related to a problem? Please describe.
Report generation mechanism for Mantis
Describe the solution you'd like
I have written Python script that would interact with MongoDB directly and generate reports based on the yaml block created by a user. I added the Python script, typst templates and sample yaml file to the Github Gist at https://gist.github.com/0xbharath/9d2f78bd808d9fbad619e04cc0637a79
The script reads parameters from yaml, generates a typ (typst) file. As part of v1, we can just give the user the typ file and ask them to generate PDF themselves. Directly providing PDF is not ideal as they might want to make changes to the report.
The yaml block for report generation is already merged and available in local.yml of Mantis. Anyone picking this task needs:
- Figure out the structure for the report generation code in Mantis project
- Modify the script to work with
local.yamlfile instead of a stand alone yaml file - Write the
typfile to a specific directory likereports - Modify the Dockerfile to do a volume mount of
reportsdirectory with host so that the generated reports can be accessed on the host
Happy to connect with anyone working on this feature to help them with the code.