Configuration File Service Layer
Handles business logic for configuration file management.
This service manages YAML configuration files for different applications
in the CommTool system, including validation, storage, and real-time updates.
- Source:
Members
(static, constant) configService
Configuration File Service
- Source:
(static, constant) triggerConfigUpdates
Triggers config updates across applications in the ui
- Source:
Methods
(inner) generateConfigUploadKey(params) → {string}
Generates the S3 key for uploaded config files
Files are initially uploaded to 'confignew' for validation
Parameters:
| Name | Type | Description |
|---|---|---|
params |
Object | Upload parameters |
- Source:
Returns:
S3 key path
- Type
- string
(async, inner) processValidatedConfig(uploadedKey, app, configUID) → {Promise.<Object>}
Processes config file after successful upload and validation
Parameters:
| Name | Type | Description |
|---|---|---|
uploadedKey |
string | S3 key of uploaded file |
app |
string | Application name |
configUID |
string | Configuration UID from parsed YAML |
- Source:
Returns:
Processing result
- Type
- Promise.<Object>