-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put in an explicit check raising when calculations call another proce…
…ss (#2250) By definition, calculation type processes cannot call other processes. This was already indirectly guarded against by the link validation process. If one attempted to add a `CALL` link from a `CalulationNode`, the link validation would raise a `ValueError`. However, it is more instructive for the user to catch this problem before attempting to add the link. Therefore, when setting up the database record for a process, if a parent process is available, we ensure that it is not a calculation type process, or we raise an `InvalidOperation` exception. A test is added for a `calcfunction` calling another `calcfunction`.
- Loading branch information
1 parent
fa8f617
commit def85b5
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters