From 04a57e502edc8eab93321f2f74901c166937290b Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Fri, 8 Aug 2025 13:23:35 +0300 Subject: [PATCH] fix: now lifecycle trends will be added for flags that have official flag type (#10482) We have instances that have fake flag types in features table. This ensures, we only count in flags have official types. --- src/migrations/20250805152422-backfill-lifecycle-trends.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/migrations/20250805152422-backfill-lifecycle-trends.js b/src/migrations/20250805152422-backfill-lifecycle-trends.js index af8568c8ef..618b63ffdd 100644 --- a/src/migrations/20250805152422-backfill-lifecycle-trends.js +++ b/src/migrations/20250805152422-backfill-lifecycle-trends.js @@ -30,6 +30,7 @@ exports.up = function (db, cb) { FROM feature_lifecycles fl JOIN features f ON f.name = fl.feature JOIN projects p ON f.project = p.id + JOIN feature_types ft ON ft.id = f.type ), latest_stage_on_week AS ( SELECT DISTINCT ON (fl.feature, wr.id)