Roll out experimental flipper-server to OSS users
Reviewed By: lblasa Differential Revision: D39651562 fbshipit-source-id: bafcb5a20cc492a58161cd41f484ce7fd33e1eaf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
00de0f0e9e
commit
e8392bdceb
@@ -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(
|
||||
@@ -61,6 +63,6 @@ export default class GK {
|
||||
}
|
||||
|
||||
static allGKs(): GKMap {
|
||||
return {};
|
||||
return Object.fromEntries(whitelistedGKs.map((gk) => [gk, true]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user