2023-06-29 Developers Deep Dive Call
Overview
Date: 29.06.2023
Objective: Weekly space for deep dive topics
Participants: (kindly only add your own names, not those of other participants)
@Dragos Dobre
@Uwe Wahser
@Sylvia Mwelu
@Eric Darchis
Topic Proposals:
Change way settings are loaded (minutes #370)
Change way settings are loaded
issue: policy renewal cron task is not active by default but policy module is always present
The issue is that submodules sometimes need to update the global settings file in the main assembly openimis-be_py but that is creating a dependency and also forces an update to the main module when the submodule evolves
This PR suggest to override the Django settings system to load them dynamically
should we activate policy renewal cron task by default?
should policy module add the renewal cron task in settings.py?
Suggested action: rebase the branch and try to deploy it to make that it is working as expected
OpenIMIS logs
As reported by SwissTPH, the logs are under the module name and this is hard to configure for DEBUG. Blsq suggests to log with:
import logging
logger = logging.getLogger("openimis." + __name__)
Or use the helper in the core module:
def get_openimis_logger(logger_name: str):
return logging.getLogger("openimis." + logger_name)
Patrick also asks to make this work for management commands.
Contribution plan primer
These plans are Strategy patterns. Currently used for contracts. When submitting the contract, the system checks all the applicable bundles and their calculation rules that are all run. Each can stop the processing at that stage.
Presentations / Attachments
Minutes
Additional Resources
Did you encounter a problem or do you have a suggestion?
Please contact our Service Desk
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/