Per-project notification settings CRUD (FEA-001).
Each project may have one notification configuration row that stores channel URLs (Microsoft Teams webhook, generic webhook) and email recipients. When a test run completes with failures, the notification dispatcher reads this configuration and fires all enabled channels.
Methods
(static) deleteByProjectId(projectId) → {boolean}
Delete notification settings for a project.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
string |
Returns:
Whether a row was deleted.
- Type
- boolean
(static) getByProjectId(projectId) → {Object|undefined}
Get the notification settings for a project.
Parameters:
| Name | Type | Description |
|---|---|---|
projectId |
string |
Returns:
- Type
- Object | undefined
(static) upsert(settings) → {Object}
Create or update notification settings for a project.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object |
Properties
|
Returns:
The upserted settings row.
- Type
- Object