-
Notifications
You must be signed in to change notification settings - Fork 237
Add rendersections plugin #511
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi, the plugin code looks good. However, I have got a remark about the functionality. When first using the plugin, I was a bit confused that sections without an In comparison, the What do you think about the exclude vs. include approach? What is the reason why you implemented it that way, that I am missing? |
|
Hi, I should have given a bit more justification for this to make it understandable why we needed it, you're right. For us the issue was, that we needed different parts of the report for different stakeholders. This is why we wanted to make certain sections This is also, why the binary So I agree, that the functionality can be seen both as Does this explain the open questions you had? |
|
Thanks for the detailed explanation. Yes, I think this plugin can be useful for many users and we are willing to provide and maintain it as an official plugin. However, we would prefer an exclude default strategy similar to the |
|
I'm very glad to hear that! We evaluated the "default include" vs "default exclude" decision at the beginning of development, and the reason why we went with the "default include" strategy is, because usually there are fewer sections where you want to make that choice than there are other high-/top-level HTML elements. But if that's your preferred strategy give me a quick confirmation and I can make the necessary changes. I assume a |
|
It probably depends on the use case and what parts of the report should be present in the partial PDF. Yes, exclude by default is our preferred strategy. It would be great if you could implement it. Thank you. |
We recently had the need to be able to choose arbitrary sections of the report to be rendered or not, which was not possible with the existing
renderfindingsplugin. Therefore we developed therendersectionsplugin, that gives the power of making sections selectable to the design author.For more information about how the plugin works please see the
README.mdof the plugin.As we are very happy with Sysreptor and a large portion of the code is based on the
renderfindingsplugin, we want to give back and contribute therendersectionsplugin upstream.