Skip to content

Commit

Permalink
[DJ] [Gitar] Updating TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitar committed Sep 17, 2024
1 parent 14ff13f commit 7938198
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/features/project/project-service.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ beforeAll(async () => {
const config = createTestConfig({
getLogger,
experimental: {
flags: { archiveProjects: true, useProjectReadModel: true },
flags: { archiveProjects: true },
},
});
eventService = createEventsService(db.rawDatabase, config);
Expand Down
5 changes: 2 additions & 3 deletions src/lib/features/project/project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ export default class ProjectService {
query?: IProjectQuery,
userId?: number,
): Promise<TransitionalProjectData[]> {
const getProjects = this.flagResolver.isEnabled('useProjectReadModel')
? () => this.projectReadModel.getProjectsForAdminUi(query, userId)
: () => this.projectStore.getProjectsWithCounts(query, userId);
const getProjects = () =>
this.projectStore.getProjectsWithCounts(query, userId);

const projects = await getProjects();

Expand Down
4 changes: 0 additions & 4 deletions src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PROJECT_LIST_IMPROVEMENTS,
false,
),
useProjectReadModel: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL,
false,
),
addonUsageMetrics: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS,
false,
Expand Down
1 change: 0 additions & 1 deletion src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ process.nextTick(async () => {
originMiddleware: true,
newEventSearch: true,
projectListImprovements: true,
useProjectReadModel: true,
addonUsageMetrics: true,
onboardingMetrics: true,
onboardingUI: true,
Expand Down

0 comments on commit 7938198

Please sign in to comment.