1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/services
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
..
client-metrics fix: Client metrics name validation (#4339) (#4342) 2023-07-25 13:33:21 +00:00
access-service.test.ts fix: fetching user root roles include custom ones (#4068) 2023-06-22 14:42:01 +00:00
access-service.ts fix: fetching user root roles include custom ones (#4068) 2023-06-22 14:42:01 +00:00
account-service.ts fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
addon-schema.ts feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
addon-service-test-simple-addon.ts feat: add OpenAPI validation to a few endpoints (#1409) 2022-04-25 14:17:59 +02:00
addon-service.test.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
addon-service.ts feat: improve slack app addon scalability (#4284) 2023-07-20 13:37:06 +01:00
api-token-service.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
api-token-service.ts feat: Separate api token roles (#4019) 2023-06-20 14:21:14 +02:00
client-spec-service.test.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
client-spec-service.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
context-schema.ts feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
context-service.ts feat: context field usage backend (#3921) 2023-06-09 12:00:17 +03:00
edge-service.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
email-service.test.ts Hyperlink Injection in People Invitation Emails (#2307) 2022-11-01 10:38:33 +02:00
email-service.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
environment-service.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
event-announcer-service.ts 1-1049 Emit events after db transaction is complete (#4174) 2023-07-10 08:43:22 +02:00
event-service.ts feat: improve frontend config freshness to < 1s (#3749) 2023-05-12 17:52:11 +00:00
favorites-service.ts Add favorite events (#2572) 2022-11-30 14:26:17 +02:00
feature-service-potentially-stale.test.ts feat(#4205): update potentially stale events (#4270) 2023-07-19 15:20:18 +02:00
feature-tag-service.ts feat: export by tags (#3635) 2023-04-27 10:22:14 +02:00
feature-toggle-service.ts feat(#4205): update potentially stale events (#4270) 2023-07-19 15:20:18 +02:00
feature-type-service.ts feat(#4205): implement configurable lifetimes (#4263) 2023-07-18 09:26:32 +00:00
group-service.ts fix: group cleanup (#4334) 2023-07-24 11:05:55 +02:00
health-service.ts
index.ts fix: group cleanup (#4334) 2023-07-24 11:05:55 +02:00
instance-stats-service.test.ts feat: report app names only if below a threshold (#2737) 2023-01-12 11:26:59 +01:00
instance-stats-service.ts docs: Instance admin (#3961) 2023-06-13 12:10:21 +00:00
maintenance-service.test.ts docs: maintanance mode impact (#3858) 2023-05-25 08:28:05 +02:00
maintenance-service.ts feat: maintenance mode disables scheduler (#3854) 2023-05-24 12:26:54 +02:00
openapi-service.ts Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
pat-service.ts feat: adds the PAT_DELETE event (#2965) 2023-01-23 15:11:16 +02:00
project-health-service.ts Project health tests (#3028) 2023-02-02 12:01:16 +01:00
project-schema.ts feat: feature creation limit crud together with frontend (#4221) 2023-07-13 14:02:35 +03:00
project-service.ts feat: feature creation limit crud together with frontend (#4221) 2023-07-13 14:02:35 +03:00
proxy-service.ts feat: improve frontend config freshness to < 1s (#3749) 2023-05-12 17:52:11 +00:00
public-signup-token-service.ts Hard cap expiry date of public signup token (#2308) 2022-11-01 11:38:18 +02:00
reset-token-service.ts feat: changing password will expire reset password tokens (#3451) 2023-04-05 12:39:52 +03:00
scheduler-service.test.ts feat: maintenance mode disables scheduler (#3854) 2023-05-24 12:26:54 +02:00
scheduler-service.ts feat: maintenance mode disables scheduler (#3854) 2023-05-24 12:26:54 +02:00
segment-schema.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
segment-service.ts feat: client api with proper client segments and strategy variants (#4244) 2023-07-14 13:25:31 +02:00
session-service.ts
setting-service.ts Fix/remove settings cache (#2694) 2022-12-14 17:35:22 +01:00
state-schema.ts feat: Add variants per env (#2471) 2022-11-21 10:37:16 +01:00
state-service-export-v1.json
state-service.test.ts feat: project mode (#3334) 2023-03-16 15:29:52 +01:00
state-service.ts chore: refactor segments to stop depending on the implementation (#3315) 2023-03-15 14:58:19 +01:00
state-util.ts
strategy-schema.ts Feat/enable disable strategies (#3566) 2023-04-21 12:09:07 +03:00
strategy-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-schema.test.ts
tag-schema.ts chore: Improve openapi documentation for tags (#3496) 2023-04-12 09:34:32 +00:00
tag-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-type-schema.test.ts
tag-type-schema.ts
tag-type-service.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
user-feedback-service.ts
user-service.test.ts Fix: prevent password reset email flooding (#2076) 2022-09-28 10:24:43 +02:00
user-service.ts feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
user-splash-service.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
version-service.test.ts feat: remove experimental flag for telemetry (#4123) 2023-06-30 11:27:54 +02:00
version-service.ts feat: remove experimental flag for telemetry (#4123) 2023-06-30 11:27:54 +02:00