mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-28 00:17:12 +01:00
https://linear.app/unleash/issue/2-2450/register-integration-events-webhook Registers integration events in the **Webhook** integration. Even though this touches a lot of files, most of it is preparation for the next steps. The only actual implementation of registering integration events is in the **Webhook** integration. The rest will follow on separate PRs. Here's an example of how this looks like in the database table: ```json { "id": 7, "integration_id": 2, "created_at": "2024-07-18T18:11:11.376348+01:00", "state": "failed", "state_details": "Webhook request failed with status code: ECONNREFUSED", "event": { "id": 130, "data": null, "tags": [], "type": "feature-environment-enabled", "preData": null, "project": "default", "createdAt": "2024-07-18T17:11:10.821Z", "createdBy": "admin", "environment": "development", "featureName": "test", "createdByUserId": 1 }, "details": { "url": "http://localhost:1337", "body": "{ \"id\": 130, \"type\": \"feature-environment-enabled\", \"createdBy\": \"admin\", \"createdAt\": \"2024-07-18T17: 11: 10.821Z\", \"createdByUserId\": 1, \"data\": null, \"preData\": null, \"tags\": [], \"featureName\": \"test\", \"project\": \"default\", \"environment\": \"development\" }" } } ``` |
||
---|---|---|
.. | ||
__snapshots__ | ||
addons | ||
db | ||
domain/project-health | ||
error | ||
features | ||
middleware | ||
openapi | ||
routes | ||
schema | ||
services | ||
types | ||
users | ||
util | ||
app.test.ts | ||
app.ts | ||
create-config.test.ts | ||
create-config.ts | ||
default-custom-auth-deny-all.ts | ||
internals.ts | ||
logger.test.ts | ||
logger.ts | ||
metric-events.ts | ||
metrics.test.ts | ||
metrics.ts | ||
server-impl.test.ts | ||
server-impl.ts |