CLI Strict Mode toggle needs to be created #1428
Labels
Error Reporting
All issues related to the relay of errors
java
Pull requests that update Java code
SED-ML
Tech Debt
validation
While VCell CLI is separate from VCell Client, they share an underlying component of VCell Core. This means that some code that was originally designed with a GUI in mind ended up in Core; nothing involving the GUI directly, just features that make sense in a GUI environment.
This poses a problem with CLI, specifically: failure tolerance.
Consider: Importing SedML.
Desired GUI Behavior: Error messages and warnings when an archive is imported, but we want to keep as many parts of the model as possible. The user then has the option to fix the broken parts of the model using the GUI, rather than manually editing the archive to be VCell compliant.
Desired CLI Behavior: Immediately reject the archive if there's any error that would leave the import of the archive in an incomplete state. Since no editing can be done in CLI at this time, it is necessary to outright reject problematic archives, so that the user is not mislead with "complete" results.
To work around this issue, any part of VCell Core that we want to behave differently, depending on whether the entrypoint is GUI or CLI, should have a "strict mode" flag that can be set by CLI to enforce strict validation of run archives.
The text was updated successfully, but these errors were encountered: