mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: only get rows for toggles in project (#5141)
This commit is contained in:
		
							parent
							
								
									19098808ef
								
							
						
					
					
						commit
						898c1b4bc7
					
				| @ -551,11 +551,17 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { | ||||
|             .leftJoin('feature_tag as ft', 'ft.feature_name', 'features.name'); | ||||
| 
 | ||||
|         if (this.flagResolver.isEnabled('useLastSeenRefactor')) { | ||||
|             query.leftJoin( | ||||
|                 'last_seen_at_metrics', | ||||
|             query.leftJoin('last_seen_at_metrics', function () { | ||||
|                 this.on( | ||||
|                     'last_seen_at_metrics.environment', | ||||
|                     '=', | ||||
|                     'environments.name', | ||||
|                 ).andOn( | ||||
|                     'last_seen_at_metrics.feature_name', | ||||
|                     '=', | ||||
|                     'features.name', | ||||
|                 ); | ||||
|             }); | ||||
|         } | ||||
| 
 | ||||
|         let selectColumns = [ | ||||
| @ -615,7 +621,6 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { | ||||
| 
 | ||||
|         query = query.select(selectColumns); | ||||
|         const rows = await query; | ||||
| 
 | ||||
|         if (rows.length > 0) { | ||||
|             const overview = this.getFeatureOverviewData(getUniqueRows(rows)); | ||||
|             return sortEnvironments(overview); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user