Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Roll out experimental flipper-server to OSS users
Browse files Browse the repository at this point in the history
Reviewed By: lblasa

Differential Revision: D39651562

fbshipit-source-id: bafcb5a20cc492a58161cd41f484ce7fd33e1eaf
  • Loading branch information
aigoncharov authored and facebook-github-bot committed Sep 20, 2022
1 parent 00de0f0 commit e8392bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions desktop/flipper-server-core/src/fb-stubs/GK.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const TEST_PASSING_GK = 'TEST_PASSING_GK';
export const TEST_FAILING_GK = 'TEST_FAILING_GK';
export type GKMap = {[key: string]: boolean};

const whitelistedGKs: Array<GKID> = [];
// Allow OSS users start flipper-server

const whitelistedGKs: Array<GKID> = ['flipper_desktop_use_server'];

export function loadGKs(_username: string, _gks: Array<GKID>): Promise<GKMap> {
return Promise.reject(
Expand Down Expand Up @@ -61,6 +63,6 @@ export default class GK {
}

static allGKs(): GKMap {
return {};
return Object.fromEntries(whitelistedGKs.map((gk) => [gk, true]));
}
}

0 comments on commit e8392bd

Please sign in to comment.