Skip to content

Commit

Permalink
feat: search now also returns project (#5488)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Nov 29, 2023
1 parent f690fe8 commit d73a293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/features/feature-search/feature.search.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -536,6 +536,7 @@ test('should search features by description', async () => {
{
name: 'my_feature_b',
description,
project: DEFAULT_PROJECT,
},
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d73a293

Please sign in to comment.