Open-Systems-Pharmacology / OSPSuite.Core

Core functionalities of the Open Systems Pharmacology Suite
Other
5 stars 8 forks source link

Abstracting table formula presenter #2291

Closed rwmcintosh closed 3 months ago

rwmcintosh commented 3 months ago

Fixes #2301

Description

I needed to do some refactoring so that the differences in MoBi and PK-Sim approaches can be both accommodated. In PK-Sim this presenter is usually as a TableParameter implying that there's always a parameter attached. In MoBi we do not always have access to the formula owner.

There are some fields that it is not possible to edit in PK-Sim, where they are exposed in MoBi.

In MoBi, the user is directly editing the domain object in the building block. In PK-Sim, it seems this formula is cloned, edited as a clone, and then the original formula replaced.

There should be no behavioural changes in PK-Sim as a result of this refactor.

Type of change

Please mark relevant options with an x in the brackets.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Reviewer checklist

Mark everything that needs to be checked before merging the PR.

Screenshots (if appropriate):

Questions (if appropriate):