Skip to content
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

Report Type Multi on Export not Including Audit Findings of Children #510

Open
liam-silvatech opened this issue Dec 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@liam-silvatech
Copy link

Describe the bug
The code from my reading appears incomplete for mutli audits. On export it is not pulling in the children and their findings.

To Reproduce
Create a new multi type audit and add child audit items. No findings are passed through.

Expected behavior
The audits are accessible through an object of 'audits' for example, so you can then do {#audits}{/audits} to then loop through each phase of the report.

Additional context
This feels like a work in progress as it's not documented and the code looks unfinished, I am trying to reverse the logic of the code so I can extend it and contribute the missing code. However, I am unclear if it's a bug or as intended at the moment.

@liam-silvatech liam-silvatech added the bug Something isn't working label Dec 26, 2023
@liam-silvatech
Copy link
Author

I believe this would be the model/function to amend along with the schema for the audit itself. You would need a new schema for children/audits and then to include the relevant aspects required for report generation.

AuditSchema.statics.getAudit = (isAdmin, auditId, userId) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant