1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/lib/types
Gastón Fournier 9398bd969e
fix: Client metrics name validation (#4339) (#4342)
1. Add a test for the failing use case (we can see it
[here](https://github.com/Unleash/unleash/actions/runs/5656229196/job/15322845002?pr=4339#step:5:783)):
```
FAIL src/lib/services/client-metrics/metrics-service-v2.test.ts
  ● process metrics properly even when some names are not url friendly

    ValidationError: "name" must be URL friendly
```
2. Fix and handle this gracefully
3. Added a new toggle to silently ignore bad names:
filterInvalidClientMetrics

Fixes: https://github.com/Unleash/unleash/pull/4193
2023-07-25 13:33:21 +00:00
..
models docs: openapi schema specifications for Projects tag (#3571) 2023-05-19 09:07:23 +02:00
settings Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
stores fix: group cleanup (#4334) 2023-07-24 11:05:55 +02:00
api-user.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
authentication-required.ts refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
core.ts fix: Do gracefull shutdown of Unleash on 'SIGINT' & 'SIGTERM' (#870) 2021-06-15 12:32:35 +02:00
environment.ts Wip/environments (#880) 2021-07-07 10:46:50 +02:00
events.ts feat(#4205): update potentially stale events (#4270) 2023-07-19 15:20:18 +02:00
experimental.ts fix: Client metrics name validation (#4339) (#4342) 2023-07-25 13:33:21 +00:00
favorites.ts Favorite features (#2550) 2022-11-29 16:06:08 +01:00
group.ts fix: group cleanup (#4334) 2023-07-24 11:05:55 +02:00
index.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
model.ts feat: strategy variants in playground (#4281) 2023-07-21 08:15:15 +02:00
mutable.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
no-auth-user.ts fix: configure user endpoint when AuthType is NONE (#1403) 2022-03-01 10:52:22 +01:00
openapi.d.ts feat: extend refs in openapi (#3170) 2023-02-22 13:10:29 +01:00
option.ts feat: add support for turning telemetry off with environment variable (#3987) 2023-06-15 15:11:58 +02:00
partial.ts feat: Permissions update import (#3141) 2023-02-17 11:58:55 +01:00
permissions.ts refactor: token permissions, drop admin-like permissions (#4050) 2023-06-22 08:35:54 +01:00
project.ts feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
query.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
saved.ts fix: validate the type and length of parameter values (#1559) 2022-05-04 15:16:18 +02:00
serialize-dates.test.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
serialize-dates.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
services.ts fix: group cleanup (#4334) 2023-07-24 11:05:55 +02:00
stores.ts feat: drop full- for import/validate (#3168) 2023-02-21 10:15:57 +01:00
user.test.ts fix: Update updateUser code to reject empty emails (#1210) 2022-01-03 20:14:56 +01:00
user.ts chore: remove uses of type errors from user-facing code (#3553) 2023-04-18 13:42:07 +02:00