Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Topic Proposals:

  • Change way settings are loaded (minutes #370)

...

  • https://github.com/openimis/openimis-be_py/pull/95/files

  • 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:

Code Block
import logging
logger = logging.getLogger("openimis." + __name__)

Or use the helper in the core module:

Code Block
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

...