foliolib.helper.modules.enable_modules

foliolib.helper.modules.enable_modules(tenantid: str, modules: list, loadSample: bool = False, loadReference: bool = False, **kwargs)

Enable modules for a tenant.

Parameters
  • tenantid (str) – Tenant id

  • modules (list) – Instances of OkapiModule.

  • loadSample (bool, optional) – load samples. Defaults to False.

  • loadReference (bool, optional) – load example reference data. Defaults to False.

  • **kwargs (properties) – Keyword Arguments

Keyword Arguments
  • ignoreErrors (boolean) – default = false Okapi 4.2.0 and later, it is possible to ignore errors during the install operation. This is done by supplying parameter ignoreErrors=true. In this case, Okapi will try to upgrade all modules in the modules list, regardless if one of them fails. However, for individual modules, if they fail, their upgrade will not be commited. This is an experimental parameter which was added to be able to inspect all problem(s) with module upgrade(s).

  • invoke (boolean) – default = true Whether to invoke for tenant init/permissions/purge

  • npmSnapshot (boolean) – default = true Whether to include NPM module snapshots (default:true).

  • preRelease (boolean) – default = true Whether pre-releases should be considered for installation.

  • simulate (boolean) – default = false Whether the installation is simulated