1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +01:00
unleash.unleash/src/lib/features/events
Gastón Fournier 7ea0c9ca9b
feat: support different etags per environment (#10512)
## About the changes
This PR introduces environment-specific etags. This way clients will not
react by updating features when there are changes in environments the
SDK doesn't care about.

## Details
There's a bit of scouting work (please don't make me split this 🙏)
and other details are in comments, but the most relevant for the lazy
ones:
- Important **decision** on how we detect changes, unifying polling and
delta:
https://github.com/Unleash/unleash/pull/10512#discussion_r2285677129
- **Decision** on how we update revision id per environment:
https://github.com/Unleash/unleash/pull/10512#discussion_r2291888401
- and how we do initial fetch on the read path:
https://github.com/Unleash/unleash/pull/10512#discussion_r2291884777
- The singleton pattern that gave me **nightmares**:
https://github.com/Unleash/unleash/pull/10512#discussion_r2291848934
- **Do we still have ALL_ENVS tokens?**
https://github.com/Unleash/unleash/pull/10512#discussion_r2291913249

## Feature flag
To control the rollout introduced `etagByEnv` feature:
[0da567d](0da567dd9b)
2025-08-22 10:35:17 -03:00
..
createEventsService.ts feat: ability to search events by type with pagination (#10217) 2025-06-26 14:42:29 +02:00
event-created-by-migration.test.ts feat: ability to search events by type with pagination (#10217) 2025-06-26 14:42:29 +02:00
event-search-controller.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
event-service.test.ts task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
event-service.ts fix: tear down also event handlers in addon service (#10295) 2025-07-03 12:09:35 +03:00
event-store.test.ts feat: ability to search events by type with pagination (#10217) 2025-06-26 14:42:29 +02:00
event-store.ts feat: support different etags per environment (#10512) 2025-08-22 10:35:17 -03:00