diff --git a/src/lib/features/client-feature-toggles/client-feature-toggle-store.ts b/src/lib/features/client-feature-toggles/client-feature-toggle-store.ts index 400ff737d507..0a674fe5a688 100644 --- a/src/lib/features/client-feature-toggles/client-feature-toggle-store.ts +++ b/src/lib/features/client-feature-toggles/client-feature-toggle-store.ts @@ -109,10 +109,6 @@ export default class FeatureToggleClientStore let query = this.db('features') .modify(FeatureToggleStore.filterByArchived, archived) - .modify( - FeatureToggleStore.filterByProjectsAccessibleByOss, - this.isOss, - ) .leftJoin( this.db('feature_strategies') .select('*') diff --git a/src/lib/features/feature-toggle/feature-toggle-store.ts b/src/lib/features/feature-toggle/feature-toggle-store.ts index 861d1af92c5e..fe412fb9986a 100644 --- a/src/lib/features/feature-toggle/feature-toggle-store.ts +++ b/src/lib/features/feature-toggle/feature-toggle-store.ts @@ -439,16 +439,6 @@ export default class FeatureToggleStore implements IFeatureToggleStore { : queryBuilder.whereNull('archived_at'); }; - static filterByProjectsAccessibleByOss: Knex.QueryCallbackWithArgs = ( - queryBuilder: Knex.QueryBuilder, - isOss: boolean, - ) => { - if (isOss) { - return queryBuilder.andWhere('project', '=', 'default'); - } - return queryBuilder; - }; - rowToFeature(row: FeaturesTable): FeatureToggle { if (!row) { throw new NotFoundError('No feature flag found'); diff --git a/src/test/e2e/api/client/feature-oss.e2e.test.ts b/src/test/e2e/api/client/feature-oss.e2e.test.ts index c54c8308980d..ce20b6495ff1 100644 --- a/src/test/e2e/api/client/feature-oss.e2e.test.ts +++ b/src/test/e2e/api/client/feature-oss.e2e.test.ts @@ -67,16 +67,3 @@ afterAll(async () => { await app.destroy(); await db.destroy(); }); - -describe('OSS downgrade', () => { - test('features created in projects other than default is not visible in client endpoint', async () => { - return app.request - .get('/api/client/features') - .expect('Content-Type', /json/) - .expect(200) - .expect((res) => { - expect(res.body.features).toHaveLength(1); - expect(res.body.features[0].name).toBe('my.default.toggle'); - }); - }); -});