mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
486c174004
## 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. |
||
---|---|---|
.. | ||
__snapshots__ | ||
addons | ||
db | ||
domain/project-health | ||
error | ||
features | ||
middleware | ||
openapi | ||
proxy | ||
routes | ||
schema | ||
segments | ||
services | ||
types | ||
util | ||
app.test.ts | ||
app.ts | ||
create-config.test.ts | ||
create-config.ts | ||
default-custom-auth-deny-all.ts | ||
internals.ts | ||
logger.test.ts | ||
logger.ts | ||
metric-events.ts | ||
metrics.test.ts | ||
metrics.ts | ||
server-impl.test.ts | ||
server-impl.ts |