From 7f2f2febcf14d2a61285ad0646a3af5079d77621 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Mon, 7 Oct 2019 09:55:40 -0700 Subject: [PATCH] Make MobileConfig plugin exportable Summary: As per title, this diff makes the Mobile config plugin exportable. This involves moving the important property from `State` to `PersistedState`. Also had to implement the `exportPersistedState` function to fetch the experiments information for the Universes, configs and gatekeeper information. Reviewed By: danielbuechele Differential Revision: D17633986 fbshipit-source-id: 604225ba47112620bee0a6c704416b3ac350de9c --- src/utils/exportData.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/exportData.tsx b/src/utils/exportData.tsx index 54babd164..14dafaa89 100644 --- a/src/utils/exportData.tsx +++ b/src/utils/exportData.tsx @@ -413,7 +413,7 @@ export async function fetchMetadata( statusUpdate && statusUpdate(`Fetching metadata for plugin ${plugin}...`); const data = await promiseTimeout( - 120000, // Timeout in 2 mins + 240000, // Fetching MobileConfig data takes ~ 3 mins, thus keeping timeout at 4 mins. exportState( callClient(client, plugin), newPluginState[key], @@ -421,6 +421,7 @@ export async function fetchMetadata( idler, statusUpdate, ), + `Timed out while collecting data for ${plugin}`, ); newPluginState[key] = data;