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

ReportNode delayed creation/deletion #3071

Open
flo-dup opened this issue Jun 19, 2024 · 0 comments
Open

ReportNode delayed creation/deletion #3071

flo-dup opened this issue Jun 19, 2024 · 0 comments

Comments

@flo-dup
Copy link
Contributor

flo-dup commented Jun 19, 2024

Describe the current behavior

Currently, if a ReportNode is created, we cannot easily delay its creation (especially if we want to add children to it).

Describe the expected behavior

Enrich the ReportNode API to be able to create or not (/to remove or not?) a reportNode based on some future results

Describe the motivation

Due to previous Reporter API design, the current use of ReportNode is sometimes to group other ReportNode without any functional added value (message "Invalidation warnings:" for instance). Besides, there is still a lot of functional information which is not reported. These two matters lead to "title" reports without children. This kind of node decreases final readability, see issue #2192.

Another use case, introduced in powsybl/powsybl-open-loadflow#919: some users sometimes need to pile up reportNodes (which may have children themselves) and then include them or not. Currently this can be done by creating each time a new root reportNode, and then include it or not depending on some result.

Extra Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant