Closed dcolleoni closed 1 year ago
Here is the summary of further discussions and investigation.
So, I believe with this discussion can be closed @amuolo , @dcolleoni
Thanks @andrey-katz-systemorph, As far as I am concerned, we can close this.
@andrey-katz-systemorph pls close the issue when it's done. Thanks
Thanks, I am moving this ticket to done.
FYI: @amuolo @dcolleoni
Here I copy some comments to PR #217 which could not addressed within the PR.
ReportMutableScopeInteractive line 95 : What is the advantage of defining a singletone having only a workspace property (it should be with capital W) that can be accessed easily through the storage? IMO this makes the code harder to read because it would not be immediately clear where this workspace comes from from reading the subsequent scopes.
ReportMutableScopeInteractive line 150 : why is this not taken from the storage? it would be more efficient than querying each time. See also https://github.com/Systemorph/IFRS17CalculationEngine/issues/237.
ReportMutableScopeInteractive line 527 : It is not immediately clear to me what this multithreading issue is about, but I think I have an idea. It might be that this workspace here is one of the source of the issue, because all dropdowns also use to query this workspace (which eventually query the datasource) and the controls happen to be on different concurrent tasks. If the dropdowns used the storage without query to the workspace (as I suggest in the comments above), then the query performed here to produce the csv could just work ok.