1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-28 00:17:12 +01:00
unleash.unleash/src/lib
Nuno Góis 0869e39603
chore: register integration events in webhooks ()
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\" }"
  }
}
```
2024-07-19 10:07:52 +01:00
..
__snapshots__ chore: feature collaborators flag () 2024-07-19 10:11:39 +02:00
addons chore: register integration events in webhooks () 2024-07-19 10:07:52 +01:00
db chore: integration events store () 2024-07-18 15:20:35 +01:00
domain/project-health chore: change toggle to flag () 2024-05-22 09:58:53 +03:00
error fix: validate patched data with schema () 2024-07-18 13:26:50 +01:00
features chore: register integration events in webhooks () 2024-07-19 10:07:52 +01:00
middleware task: added flag to remove unsafe inline style src header () 2024-07-10 14:36:28 +02:00
openapi chore: integration events store () 2024-07-18 15:20:35 +01:00
routes feat: Disallow repeating last 5 passwords. () 2024-07-09 16:18:35 +02:00
schema feat: implement createdByUserId for all features () 2023-12-22 14:33:16 +01:00
services chore: register integration events in webhooks () 2024-07-19 10:07:52 +01:00
types chore: register integration events in webhooks () 2024-07-19 10:07:52 +01:00
users feat: use audit info in events () 2024-04-18 16:32:35 +02:00
util feat: upgrade from react v17 to v18 () 2024-06-11 13:59:52 +03:00
app.test.ts feat: Make compression middleware optional () 2023-12-16 08:06:26 +01:00
app.ts fix: bearer tokens with base-path () 2024-05-16 11:45:16 +02:00
create-config.test.ts feat: allow admin login using demo auth () 2024-04-23 08:39:33 +02:00
create-config.ts feat: constraints limit in a strategy () 2024-07-08 11:02:22 +02:00
default-custom-auth-deny-all.ts chore: Bump biome and configure husky () 2024-03-18 13:58:05 +01:00
internals.ts refactor: rename proxy to frontend api () 2024-03-11 17:30:46 +01:00
logger.test.ts
logger.ts
metric-events.ts chore: send prometheus metrics when someone tries to exceed resource limits () 2024-07-18 13:35:45 +02:00
metrics.test.ts chore: send prometheus metrics when someone tries to exceed resource limits () 2024-07-18 13:35:45 +02:00
metrics.ts chore: send prometheus metrics when someone tries to exceed resource limits () 2024-07-18 13:35:45 +02:00
server-impl.test.ts feat: error log on unsupported pg () 2024-05-27 09:21:45 +02:00
server-impl.ts feat: file import () 2024-05-31 13:21:41 +02:00