1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00
unleash.unleash/src/lib
Gastón Fournier ca01a79f71
chore: drop event hook (#3565)
## About the changes
Ref:
https://docs.getunleash.io/reference/deploy/configuring-unleash#further-customization
> **eventHook** (`function(event, data)`) - (_deprecated in Unleash 4.3_
in favor of the [Webhook addon](../addons/webhook.md)) If provided, this
function will be invoked whenever a feature is mutated. The possible
values for `event` are `'feature-created'`, `'feature-archived'` and
`'feature-revived'`. The `data` argument contains information about the
mutation. Its fields are `type` (string) - the event type (same as
`event`); `createdBy` (string) - the user who performed the mutation;
`data` - the contents of the change. The contents in `data` differs
based on the event type; For `'feature-archived'` and
`'feature-revived'`, the only field will be `name` - the name of the
feature. For `'feature-created'` the data follows a schema defined in
the code
[here](7b7f0b84e8/src/lib/schema/feature-schema.ts (L77)).
See an [api here](/reference/api/legacy/unleash/admin/events).


Related to: https://github.com/Unleash/unleash/issues/1265
2023-04-21 09:44:18 +02:00
..
__snapshots__ chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
addons
db feat: root roles from groups (#3559) 2023-04-20 12:29:30 +02:00
domain/project-health
error
features
middleware fix: 4 param error handler (#3520) 2023-04-14 08:59:27 +02:00
openapi feat: root roles from groups (#3559) 2023-04-20 12:29:30 +02:00
proxy
routes feat: root roles from groups (#3559) 2023-04-20 12:29:30 +02:00
schema
segments
services chore: remove uses of type errors from user-facing code (#3553) 2023-04-18 13:42:07 +02:00
types chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
util chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
app.test.ts
app.ts
create-config.test.ts
create-config.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
default-custom-auth-deny-all.ts
internals.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
logger.test.ts
logger.ts
metric-events.ts fix: refactor event types 2021-04-29 10:21:29 +02:00
metrics.test.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
metrics.ts Poc: calculate etag based on query and latest revison id (#3062) 2023-03-17 14:10:21 +01:00
server-impl.test.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
server-impl.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00