This post is to try to capture the issue we were discussing with Iniz and the openconceptlab module.
@suruchi has been working on creating an Iniz domain to load OCL-based zip files (eventually we’ll aim to support raw JSON files as well and loading the metadata for a subscription, but this is our initial target). As part of this work, we discovered that the openconcept lab module assumes that there’s an active subscription already setup when it tries to save concepts to the OpenMRS Concept dictionary. More exactly, the error we’re seeing is caused by this check for the type of validation that should be performed. By default, the global property that drives the validation type will only be set if someone has actually configured a subscription, which we don’t expect to be the case for a system that is being initially populated by Iniz (again, at a later state, we will add to Iniz the ability to automatically configure the OCL subscription, if any).
To unblock our work, we’re proposing to simply change the code in the openconcept lab module to default to assuming that we use
ValidationType.FULL unless the global property has already been set.