1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/test/e2e
Gastón Fournier b76e66fc1d
fix: make sure we have a user in event store (#3072)
## About the changes
Spotted some issues in logs:
```json
{
  "level":"warn",
  "message":"Failed to store \"feature-environment-variants-updated\" event: error: insert into \"events\" (\"created_by\", \"data\", \"environment\", \"feature_name\", \"pre_data\", \"project\", \"tags\", \"type\") values (DEFAULT, $1, $2, $3, $4, $5, $6, $7) returning \"id\", \"type\", \"created_by\", \"created_at\", \"data\", \"pre_data\", \"tags\", \"feature_name\", \"project\", \"environment\" - null value in column \"created_by\" violates not-null constraint",
  "name":"lib/db/event-store.ts"
}
```

In all other events we're doing the following:
b7fdcd36c0/src/lib/services/segment-service.ts (L80)

So this is just mimicking that to quickly release a patch, but I'll look
into a safer (type-checked) solution so this problem does not happen
again
2023-02-09 11:01:39 +01:00
..
api chore: service accounts GA (#3059) 2023-02-08 11:59:24 +01:00
helpers feat: status API (#2931) 2023-01-19 13:27:50 +01:00
routes Wip/environments (#880) 2021-07-07 10:46:50 +02:00
seed feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
services fix: make sure we have a user in event store (#3072) 2023-02-09 11:01:39 +01:00
stores feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
custom-auth.test.ts Favorite features (#2550) 2022-11-29 16:06:08 +01:00
health.e2e.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00