1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/src/lib/services
Gastón Fournier 37ce81a727
chore: re-use the same client schema for proxy (#3251)
## About the changes
client-metrics-schema is less strict than proxy-metrics-schema because
the former allows empty `instanceId` and also supports dates as
timestamps as well as date-formatted strings.

Using the same schema makes sense to reduce maintainability costs and
it's less error-prone if we need to modify the schema because underlying
the schema they both use the same code.

The reasoning is that proxy metrics should align with our client
metrics. Alternatively, we have new endpoints for edge metrics that will
aggregate and bucket by client.


![image](https://user-images.githubusercontent.com/455064/222738911-4c443e02-3072-4042-bfde-327da8dd46fe.png)


## Discussion points
Will we ever want to evolve proxy-metrics differently than
client-metrics? I'm under the assumption that the answer is no
2023-03-03 16:36:23 +01:00
..
client-metrics fix: Change format for bulk metrics. (#3229) 2023-03-01 13:08:08 +01:00
access-service.test.ts chore: type improvements (#1941) 2022-08-19 10:28:53 +02:00
access-service.ts refactor: make permission check type less demanding (#3214) 2023-02-28 14:48:27 +01:00
account-service.ts feat: add the account abstraction logic (#2918) 2023-01-18 16:08:07 +00: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 fix: addon filtering supports wildcards 2022-07-12 15:53:57 +02:00
addon-service.ts Fix joi failing starting from 17.7.0 release (#2790) 2023-01-03 11:50:00 +02:00
api-token-service.test.ts task: Make operations on the API Token store auditable. (#2531) 2022-11-28 10:56:34 +01:00
api-token-service.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01: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 openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
edge-service.ts Create endpoint that validates tokens for edge (#2039) 2022-09-01 13:26:26 +00:00
email-service.test.ts Hyperlink Injection in People Invitation Emails (#2307) 2022-11-01 10:38:33 +02:00
email-service.ts Hyperlink Injection in People Invitation Emails (#2307) 2022-11-01 10:38:33 +02:00
environment-service.ts refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
event-service.ts feat: add count to event list (#2036) 2022-09-02 08:35:31 +02:00
favorites-service.ts Add favorite events (#2572) 2022-11-30 14:26:17 +02:00
feature-tag-service.ts Fix/show tag events (#3064) 2023-02-08 19:57:21 +01:00
feature-toggle-service.ts chore: make event store accept IUser (#3076) 2023-02-21 14:11:39 +00:00
feature-type-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
group-service.ts feat: add the account abstraction logic (#2918) 2023-01-18 16:08:07 +00:00
health-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
index.ts feat: shared event emitter (#3241) 2023-03-02 09:52:19 +01: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 feat: Instance stats for export/import (#3121) 2023-02-15 14:39:16 +02:00
maintenance-service.ts Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
openapi-service.ts feat: extend refs in openapi (#3170) 2023-02-22 13:10:29 +01:00
pat-service.ts feat: adds the PAT_DELETE event (#2965) 2023-01-23 15:11:16 +02:00
playground-service.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
project-health-service.ts Project health tests (#3028) 2023-02-02 12:01:16 +01:00
project-schema.ts fix: convert schemas to typescript 2021-09-14 20:36:40 +02:00
project-service.ts Refactor: Project Overview fetching (#3035) 2023-02-07 08:57:28 +01:00
proxy-service.ts chore: re-use the same client schema for proxy (#3251) 2023-03-03 16:36:23 +01: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 Fix/bcryptjs (#1239) 2022-01-06 20:43:57 +01:00
scheduler-service.test.ts feat: extract custom context fields from all possible locations (#3118) 2023-02-15 10:26:19 +01:00
scheduler-service.ts refactor: separate scheduling from DI (#3017) 2023-01-30 11:13:17 +01:00
segment-schema.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
segment-service.ts feat: update strategy segments with edit / create strategy (#2420) 2022-11-16 15:35:39 +01:00
session-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
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 Wip/environments (#880) 2021-07-07 10:46:50 +02:00
state-service.test.ts refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
state-service.ts refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
state-util.ts fix: update mime library method signature to 2.X (#1078) 2021-11-02 23:43:16 +01:00
strategy-schema.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
strategy-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-schema.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-schema.ts fix: Controller wraps handler with try/catch (#909) 2021-08-13 10:36:19 +02:00
tag-service.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-type-schema.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-type-schema.ts fix: import schema needs to understand :global: env 2021-08-26 22:42:06 +02:00
tag-type-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-feedback-service.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-service.test.ts Fix: prevent password reset email flooding (#2076) 2022-09-28 10:24:43 +02:00
user-service.ts feat: add the account abstraction logic (#2918) 2023-01-18 16:08:07 +00: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 fix: attempt to unflake version service tests (#2008) 2022-08-31 08:06:25 +02:00
version-service.ts fix: attempt to unflake version service tests (#2008) 2022-08-31 08:06:25 +02:00