1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src/lib
Kamil Zegier 486c174004
fix: Add condition for getting max revision id from store (#4549)
## About the changes
In our staging setup, we create ad-hoc environments and import Unleash
state from production. After unleash is deployed on such environment,
the import job kicks in and feeds Unleash instance with feature flags
from production.

Between Unleash being up and running and the import job running, some
applications start polling Unleash. They get an empty feature toggle
list with `meta.revisionId=0`. Then apps use this as part of `eTag`
header in subsequent requests. Even though after import Unleash server
finally has toggles to serve, it doesn't because it calculates _max
revision id_ based on toggle updates (not null `feature_name` column in
query) or `SEGMENT_UPDATED`.

This change adds an extra condition to query so feature toggles import
is considered something that should invalidate the cache.
2023-09-29 12:59:28 +00:00
..
__snapshots__ feat: add kill switch for client metrics (#4829) 2023-09-26 09:37:42 +02:00
addons feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
db fix: Add condition for getting max revision id from store (#4549) 2023-09-29 12:59:28 +00:00
domain/project-health
error feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
features feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
middleware feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
openapi feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
proxy feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
routes feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
schema feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
segments feat: context/segment usage private (#4826) 2023-09-25 15:50:44 +03:00
services feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
types feat: events for dependencies (#4864) 2023-09-29 14:02:15 +02:00
util feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
app.test.ts
app.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
create-config.test.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
create-config.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
default-custom-auth-deny-all.ts
internals.ts
logger.test.ts
logger.ts
metric-events.ts
metrics.test.ts feat: Add active users statistics to metrics (#4674) 2023-09-18 15:05:17 +02:00
metrics.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
server-impl.test.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
server-impl.ts