Repository Management
The repository contains all the "mutable" files of the application such as custom configurations, templates, kb, kba, statistics, logs.
Structure
This is the structure of the repository.
|-tenantName
|---errorLogs
|---statistics
|---savedConsultations
|-----someusername1
|-------somekbaid1
|---repository
|-----connections
|-----databases
|-----default-kba
|-----deletedKba
|-----emailTemplates
|-----group
|-----icons
|-----kb
|-----kba
|-----mwpProperties
|-----serverExtensions
|-----template
- The first level is the tenant sub-repository: the repository root is split in tenant identified by the tenant's name. If no tenant is configured the repository root contains one only tenant named "default".
- In each tenant folder there are the error logs, the statistics, the save files and the configuration repository.
- Error logs contains one file per error
- Statistics contains one file per day
- SavedConsultations contains a folder per user (identified by username) and each folder contains a folder per kba (identified by the kba id) with one file per saved consultation.
- Repository is the configuration repository and it's a standard git repository. Although it's possible to interact with it with the standard git apis, it is recommended to avoid any modification because the player's internal history api is based on some assumptions about how the files are modified and committed.
Maintenance
To delete a tenant delete the corresponding folder in the repository root.
To rename a tenant rename the corresponding folder in the repository root (and modify the container parameter).
It's safe to delete the error files from the error folder (obviously they won't be available anymore).
It's safe to delete the statistics of all but the current day from the statistics folder (obviously they won't be available anymore).
It's safe to delete the save files from the savedConsultation folder (obviously they won't be available anymore).
Do not modify any file under tenantName/repository.