Skip to content

Commit

Permalink
fix: active flags double stale flags (#8673)
Browse files Browse the repository at this point in the history
Do not count stale flags as potentially stale flags to remove
duplicates.
Stale flags feel like more superior state and it should not show up
under potentially stale.
  • Loading branch information
sjaanus authored Nov 6, 2024
1 parent fa597aa commit 76bf6db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const vitestConfig = vitestDefineConfig({
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
}
api: 'modern-compiler',
},
},
},
});

export default mergeConfig(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/features/project/project-read-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class ProjectReadModel implements IProjectReadModel {
'projects.id, projects.health, ' +
'count(features.name) FILTER (WHERE features.archived_at is null) AS number_of_features, ' +
'count(features.name) FILTER (WHERE features.archived_at is null and features.stale IS TRUE) AS stale_feature_count, ' +
'count(features.name) FILTER (WHERE features.archived_at is null and features.potentially_stale IS TRUE) AS potentially_stale_feature_count',
'count(features.name) FILTER (WHERE features.archived_at is null and features.potentially_stale IS TRUE and features.stale IS FALSE) AS potentially_stale_feature_count',
),
'project_stats.avg_time_to_prod_current_window',
'projects.archived_at',
Expand Down

0 comments on commit 76bf6db

Please sign in to comment.