mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: search now also returns project (#5488)
This commit is contained in:
		
							parent
							
								
									f690fe86da
								
							
						
					
					
						commit
						d73a2937a7
					
				| @ -5,7 +5,7 @@ import { | ||||
| } from '../../../test/e2e/helpers/test-helper'; | ||||
| import getLogger from '../../../test/fixtures/no-logger'; | ||||
| import { FeatureSearchQueryParameters } from '../../openapi/spec/feature-search-query-parameters'; | ||||
| import { IUnleashStores } from '../../types'; | ||||
| import { DEFAULT_PROJECT, IUnleashStores } from '../../types'; | ||||
| import { DEFAULT_ENV } from '../../util'; | ||||
| 
 | ||||
| let app: IUnleashTest; | ||||
| @ -536,6 +536,7 @@ test('should search features by description', async () => { | ||||
|             { | ||||
|                 name: 'my_feature_b', | ||||
|                 description, | ||||
|                 project: DEFAULT_PROJECT, | ||||
|             }, | ||||
|         ], | ||||
|     }); | ||||
|  | ||||
| @ -649,6 +649,7 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { | ||||
|                     'features.name as feature_name', | ||||
|                     'features.description as description', | ||||
|                     'features.type as type', | ||||
|                     'features.project as project', | ||||
|                     'features.created_at as created_at', | ||||
|                     'features.stale as stale', | ||||
|                     'features.last_seen_at as last_seen_at', | ||||
| @ -907,6 +908,7 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { | ||||
|                 acc[row.feature_name] = { | ||||
|                     type: row.type, | ||||
|                     description: row.description, | ||||
|                     project: row.project, | ||||
|                     favorite: row.favorite, | ||||
|                     name: row.feature_name, | ||||
|                     createdAt: row.created_at, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user