1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/features
Thomas Heartman e07aab68cc
feat: Add lifecycle summary info read model + average time spent in lifecycle query (#8691)
This PR adds a project lifecycle read model file along with the most
important (and most complicated) query that runs with it: calculating
the average time spent in each stage.

The calculation relies on the following:
- when calculating the average of a stage, only flags who have gone into
a following stage are taken into account.
- we'll count "next stage" as the next row for the same feature where
the `created_at` timestamp is higher than the current row
- if you skip a stage (go straight to live or archived, for instance),
that doesn't matter, because we don't look at that.

The UI only shows the time spent in days, so I decided to go with
rounding to days directly in the query.

## Discussion point:

This one uses a subquery, but I'm not sure it's possible to do without
it. However, if it's too expensive, we can probably also cache the value
somehow, so it's not calculated more than every so often.
2024-11-08 09:45:47 +00:00
..
access
api-tokens
change-request-access-service
change-request-segment-usage-service
client-feature-toggles
dependent-features
events feat: activity chart polish (#8665) 2024-11-06 12:00:42 +02:00
export-import-toggles
feature-lifecycle
feature-naming-pattern
feature-search feat: search endpoint should return archived at date (#8592) 2024-10-30 12:35:47 +02:00
feature-toggle
frontend-api
group
instance-stats chore: upgrade to biome 1.9.4 (#8616) 2024-10-31 15:24:22 +01:00
integration-events
maintenance
metrics
onboarding
personal-dashboard
playground
private-project
project fix: active flags double stale flags (#8673) 2024-11-06 15:04:07 +02:00
project-environments
project-insights
project-status feat: Add lifecycle summary info read model + average time spent in lifecycle query (#8691) 2024-11-08 09:45:47 +00:00
scheduler
segment chore (1-3076): add remaining "project resources" to status payload (#8660) 2024-11-06 11:46:04 +00:00
tag-type
traffic-data-usage
ui-observability-controller
user-subscriptions feat: add user preference change to event log (#8652) 2024-11-05 14:52:11 +00:00
index.ts feat: export transactional user subscriptions service (#8651) 2024-11-05 11:52:15 +01:00