mekomsolutions / openmrs-module-initializer

The OpenMRS Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory.
MIT License
23 stars 79 forks source link

CSV parser should save cached objects once file has been loaded. #277

Open Ruhanga opened 1 month ago

Ruhanga commented 1 month ago

When objects from a previous loader remain in the current Hibernate session and haven't been fully persisted, there is a risk that subsequent loaders could clear them before they are saved (e.g DisplaysCsvParser#save()).

To address this bug and ensure proper persistence, the CSV parser should persist cached objects after processing each batch of lines.