-
Notifications
You must be signed in to change notification settings - Fork 129
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
Only forcibly generate diagram files for report if missing - use custom diagrams in report #71
Conversation
For reportPDF variables generateDataFlowDiagram and generateDataAssetsDiagram are always true and proposed changes will never be executed: https://github.com/Threagile/threagile/blame/master/pkg/report/generate.go#L75-L81 As far as I understand you're looking for adding some flag to not generate data flow/data assets diagrams, aren't you? I'd perhaps consider the implementation in this way: 7dbcd59 leveraging configuration file. With this implementation you'll need to point to your config.json and run the program with flag --config config.json |
Hey, In my pull request, I modified the Now, the code includes a check to see if the necessary files for building the report already exist. If they do and the variables are set, the generation is skipped. This approach is more transparent than simply ignoring the --generate-data-flow-diagram=0 and --generate-data-asset-diagram=0 flags without any notification. Additionally, it allows you to place your diagrams in the build folder and have them automatically added to the report. I think your solution using the config file should be additional to this pull request, as a config will be used to replace setting command line arguments when building the report. |
Sorry, I missread the PR, my fault Could you please rebase your branch against master branch to contain latest code changes because right now the static checks are failing? |
Rebase is done and format is corrected. |
regarding errors:
|
okay, changed to the now used get methods. |
lgtm thanks for contribution |
It is not possible to use a self-created diagram for the report because the creation of the diagrams is enforced, even when
--generate-data-flow-diagram=0
or--generate-data-asset-diagram=0
is provided. This pull request adds a check to see if the files already exists and allows for skipping the creation of the diagrams in that case.Therefore, a custom diagram in the build folder can be used and is build into the report.