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.yaml file instead of a stand alone yaml file
- Write the
typ file to a specific directory like reports
- Modify the Dockerfile to do a volume mount of
reports directory 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.
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
yamlblock created by a user. I added the Python script, typst templates and sampleyamlfile to the Github Gist at https://gist.github.com/0xbharath/9d2f78bd808d9fbad619e04cc0637a79The 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.ymlof Mantis. Anyone picking this task needs:local.yamlfile instead of a stand alone yaml filetypfile to a specific directory likereportsreportsdirectory with host so that the generated reports can be accessed on the hostHappy to connect with anyone working on this feature to help them with the code.